fix LUACOPT when cross compiling for WIN32

This commit is contained in:
Thomas Bernard 2018-05-14 01:48:41 +02:00
parent 2639dec301
commit 5865be3383
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

View File

@ -360,12 +360,16 @@ endif
ifeq ($(NOLUA),1) ifeq ($(NOLUA),1)
LUACOPT = LUACOPT =
LUALOPT = LUALOPT =
else
ifdef WIN32CROSS
LUACOPT = -I../3rdparty/usr/include
else else
LUAPKG := $(shell for p in lua5.3 lua-5.3 lua53 lua5.2 lua-5.2 lua52 lua5.1 lua-5.1 lua51 lua ; do pkg-config --exists $$p && echo $$p && break ; done) LUAPKG := $(shell for p in lua5.3 lua-5.3 lua53 lua5.2 lua-5.2 lua52 lua5.1 lua-5.1 lua51 lua ; do pkg-config --exists $$p && echo $$p && break ; done)
LUACOPT = $(shell pkg-config $(LUAPKG) --cflags) LUACOPT = $(shell pkg-config $(LUAPKG) --cflags)
LUALOPT = $(shell pkg-config $(LUAPKG) --libs) LUALOPT = $(shell pkg-config $(LUAPKG) --libs)
endif endif
endif endif
endif
# These can only be used under linux and maybe freebsd. They allow to compile for the gp2x or to create a windows binary # These can only be used under linux and maybe freebsd. They allow to compile for the gp2x or to create a windows binary
ifdef WIN32CROSS ifdef WIN32CROSS