81 lines
1.5 KiB
Makefile
81 lines
1.5 KiB
Makefile
|
PROJNAME = iup
|
||
|
LIBNAME = iupluascripterdlg
|
||
|
|
||
|
IUP := ..
|
||
|
|
||
|
OPT = YES
|
||
|
NO_LUAOBJECT = Yes
|
||
|
# To not link with the Lua dynamic library in UNIX
|
||
|
NO_LUALINK = Yes
|
||
|
# To use a subfolder with the Lua version for binaries
|
||
|
LUAMOD_DIR = Yes
|
||
|
USE_BIN2C_LUA = Yes
|
||
|
DEPENDDIR = dep
|
||
|
|
||
|
USE_IUP3 = Yes
|
||
|
USE_IUPLUA = Yes
|
||
|
|
||
|
INCLUDES = ../src ../srclua5
|
||
|
DEF_FILE = scripter/iupluascripterdlg.def
|
||
|
LIBS = iup_scintilla iupimglib
|
||
|
|
||
|
ifdef USE_LUA_VERSION
|
||
|
USE_LUA51:=
|
||
|
USE_LUA52:=
|
||
|
USE_LUA53:=
|
||
|
USE_LUA54:=
|
||
|
ifeq ($(USE_LUA_VERSION), 54)
|
||
|
USE_LUA54:=Yes
|
||
|
endif
|
||
|
ifeq ($(USE_LUA_VERSION), 53)
|
||
|
USE_LUA53:=Yes
|
||
|
endif
|
||
|
ifeq ($(USE_LUA_VERSION), 52)
|
||
|
USE_LUA52:=Yes
|
||
|
endif
|
||
|
ifeq ($(USE_LUA_VERSION), 51)
|
||
|
USE_LUA51:=Yes
|
||
|
endif
|
||
|
endif
|
||
|
|
||
|
ifdef USE_LUA54
|
||
|
LUASFX = 54
|
||
|
else
|
||
|
ifdef USE_LUA53
|
||
|
LUASFX = 53
|
||
|
else
|
||
|
ifdef USE_LUA52
|
||
|
LUASFX = 52
|
||
|
else
|
||
|
USE_LUA51 = Yes
|
||
|
LUASFX = 51
|
||
|
endif
|
||
|
endif
|
||
|
endif
|
||
|
|
||
|
LIBNAME := $(LIBNAME)$(LUASFX)
|
||
|
ifdef NO_LUAOBJECT
|
||
|
DEFINES += IUPLUA_USELH
|
||
|
USE_LH_SUBDIR = Yes
|
||
|
LHDIR = lh
|
||
|
else
|
||
|
DEFINES += IUPLUA_USELOH
|
||
|
USE_LOH_SUBDIR = Yes
|
||
|
LOHDIR = loh$(LUASFX)
|
||
|
endif
|
||
|
|
||
|
SRCLUA_CTRL = luascripterdlg.lua
|
||
|
SRCLUA = console.lua debugger.lua $(SRCLUA_CTRL)
|
||
|
|
||
|
GC := $(addsuffix .c, $(basename $(SRCLUA_CTRL)))
|
||
|
GC := $(addprefix scripter/il_, $(GC))
|
||
|
|
||
|
$(GC) : scripter/il_%.c : scripter/%.lua generator.lua
|
||
|
$(LUABIN) generator.lua $<
|
||
|
|
||
|
SRC := scripter/iupluascripterdlg.c scripter/iupluascripter_debugger.c scripter/iupluascripterdlg_images.c $(GC)
|
||
|
|
||
|
ifneq ($(findstring MacOS, $(TEC_UNAME)), )
|
||
|
USE_IUPLUA:=
|
||
|
endif
|