87 lines
2.3 KiB
Makefile
87 lines
2.3 KiB
Makefile
|
PROJNAME = iup
|
||
|
LIBNAME = iuplua
|
||
|
|
||
|
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
|
||
|
|
||
|
DEF_FILE = iuplua.def
|
||
|
INCLUDES = ../include ../src ../srclua5
|
||
|
LDIR = ../lib/$(TEC_UNAME)
|
||
|
LIBS = iup
|
||
|
|
||
|
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
|
||
|
|
||
|
CTRLUA = button.lua canvas.lua dialog.lua colordlg.lua clipboard.lua \
|
||
|
filedlg.lua fill.lua frame.lua hbox.lua normalizer.lua gridbox.lua \
|
||
|
item.lua image.lua imagergb.lua imagergba.lua label.lua expander.lua \
|
||
|
link.lua menu.lua multiline.lua list.lua separator.lua user.lua \
|
||
|
submenu.lua text.lua toggle.lua vbox.lua zbox.lua timer.lua \
|
||
|
sbox.lua scrollbox.lua split.lua spin.lua spinbox.lua cbox.lua \
|
||
|
radio.lua val.lua tabs.lua fontdlg.lua tree.lua progressbar.lua \
|
||
|
messagedlg.lua progressdlg.lua backgroundbox.lua flatbutton.lua \
|
||
|
animatedlabel.lua calendar.lua datepick.lua param.lua parambox.lua \
|
||
|
detachbox.lua flatframe.lua flattabs.lua flatscrollbox.lua dial.lua \
|
||
|
colorbar.lua gauge.lua colorbrowser.lua flatlabel.lua dropbutton.lua \
|
||
|
flattoggle.lua flatseparator.lua space.lua multibox.lua \
|
||
|
flatlist.lua flatval.lua thread.lua flattree.lua
|
||
|
|
||
|
GC := $(addsuffix .c, $(basename $(CTRLUA)))
|
||
|
GC := $(addprefix elem/il_, $(GC))
|
||
|
|
||
|
SRCLUA = iuplua.lua constants.lua iup_config.lua $(CTRLUA)
|
||
|
|
||
|
$(GC) : elem/il_%.c : elem/%.lua generator.lua
|
||
|
$(LUABIN) generator.lua $<
|
||
|
|
||
|
SRC = iuplua.c iuplua_api.c iuplua_draw.c iuplua_tree_aux.c iuplua_scanf.c \
|
||
|
iuplua_getparam.c iuplua_getcolor.c iuplua_config.c $(GC)
|