Skip to content

Commit

Permalink
mingw: if_lua: Separate $LUA_LIBDIR and $LUA_INCDIR
Browse files Browse the repository at this point in the history
Define two separated variables for the lua library directory and the lua
include directory.
Now users can select the directories flexible.
  • Loading branch information
k-takata committed Sep 21, 2018
1 parent 3f3fb0b commit 999fc54
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Make_cyg_ming.mak
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ LUA_VER=53
endif

ifeq (no,$(DYNAMIC_LUA))
LUA_LIB = -L$(LUA)/lib -llua
LUA_LIBDIR = $(LUA)/lib
LUA_LIB = -L$(LUA_LIBDIR) -llua
endif

endif
Expand Down Expand Up @@ -524,7 +525,8 @@ endif
endif

ifdef LUA
CFLAGS += -I$(LUA)/include -I$(LUA) -DFEAT_LUA
LUA_INCDIR = $(LUA)/include
CFLAGS += -I$(LUA_INCDIR) -I$(LUA) -DFEAT_LUA
ifeq (yes, $(DYNAMIC_LUA))
CFLAGS += -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL=\"lua$(LUA_VER).dll\"
endif
Expand Down

0 comments on commit 999fc54

Please sign in to comment.