diff options
author | Pixel <pixel@nobis-crew.org> | 2009-11-04 11:56:41 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-11-04 11:59:33 -0800 |
commit | d577d991b97ae2b5ee1af23641bcffc3f83af5b2 (patch) | |
tree | 590639d50205d1bcfaff2a7d2dc6ebf3f373c7ed /iup/srcconsole/config.mak |
Initial import. Contains the im, cd and iup librairies, and a "working" Makefile for them under linux.
Diffstat (limited to 'iup/srcconsole/config.mak')
-rwxr-xr-x | iup/srcconsole/config.mak | 138 |
1 files changed, 138 insertions, 0 deletions
diff --git a/iup/srcconsole/config.mak b/iup/srcconsole/config.mak new file mode 100755 index 0000000..612a3ab --- /dev/null +++ b/iup/srcconsole/config.mak @@ -0,0 +1,138 @@ +PROJNAME = iup +APPNAME = iuplua51 +APPTYPE = console + +LOHDIR = loh +SRCLUA = console5.lua +SRC = iup_lua51.c + + +# Disable strip +STRIP = +# Optimize +OPT = YES + +# IM and IupPPlot uses C++ +LINKER = $(CPPC) + +USE_MOTIF = Yes + +ifdef USE_GTK + APPNAME = iuplua51gtk +endif + +ifdef USE_MOTIF + APPNAME = iuplua51mot +endif + +DBG = Yes + +ifdef DBG + # Statically link everything only when debugging + IUP := .. + USE_IUPLUA = Yes + USE_IUP3 = Yes + USE_STATIC = Yes + USE_LUA51 = Yes + + DEFINES = USE_STATIC + + USE_CDLUA = Yes + USE_IUPCONTROLS = Yes + ifneq ($(findstring Win, $(TEC_SYSNAME)), ) + LIBS += iuplua_pplot$(LIBLUASUFX) iup_pplot + else + IUPLIB = $(IUP)/lib/$(TEC_UNAME) + SLIB += $(IUPLIB)/libiuplua_pplot$(LIBLUASUFX).a $(IUPLIB)/libiup_pplot.a + endif + + ifndef IUPLUA_NO_IM + ifneq ($(findstring Win, $(TEC_SYSNAME)), ) + LIBS += cdluaim$(LIBLUASUFX) + else + CDLIB = $(CD)/lib/$(TEC_UNAME) + SLIB += $(CDLIB)/libcdluaim$(LIBLUASUFX).a + endif + endif + ifneq ($(findstring Win, $(TEC_SYSNAME)), ) + USE_GDIPLUS=Yes + else + # USE_XRENDER=Yes + endif + + USE_IMLUA = Yes + + ifneq ($(findstring Win, $(TEC_SYSNAME)), ) + LIBS += imlua_process$(LIBLUASUFX) iupluaim$(LIBLUASUFX) im_process iupim + else + IUPLIB = $(IUP)/lib/$(TEC_UNAME) + IMLIB = $(IM)/lib/$(TEC_UNAME) + SLIB += $(IMLIB)/libimlua_process$(LIBLUASUFX).a $(IUPLIB)/libiupluaim$(LIBLUASUFX).a $(IMLIB)/libim_process.a $(IUPLIB)/libiupim.a + endif + + + IUPLUA_IMGLIB = Yes + ifdef IUPLUA_IMGLIB + DEFINES += IUPLUA_IMGLIB + ifneq ($(findstring Win, $(TEC_SYSNAME)), ) + LIBS += iupluaimglib$(LIBLUASUFX) iupimglib + else + IUPLIB = $(IUP)/lib/$(TEC_UNAME) + SLIB += $(IUPLIB)/libiupluaimglib$(LIBLUASUFX).a $(IUPLIB)/libiupimglib.a + endif + endif +else + ifneq ($(findstring Win, $(TEC_SYSNAME)), ) + # Dinamically link in Windows, when not debugging + # Must call "tecmake dll8" + USE_LUA51 = Yes + USE_DLL = Yes + GEN_MANIFEST = No + else + # In UNIX Lua is always statically linked, late binding is used. + USE_STATIC = Yes + USE_LUA51 = Yes + endif +endif + + +ifneq ($(findstring Win, $(TEC_SYSNAME)), ) + SLIB += setargv.obj + SRC += iuplua5.rc +endif + +ifneq ($(findstring cygw, $(TEC_UNAME)), ) + LDFLAGS = -s + LIBS += readline history +endif + +ifneq ($(findstring Linux, $(TEC_UNAME)), ) + LIBS += dl + #To allow late binding + LFLAGS = -Wl,-E + LIBS += readline history curses ncurses +endif + +ifneq ($(findstring BSD, $(TEC_UNAME)), ) + #To allow late binding + LFLAGS = -Wl,-E + LIBS += readline history curses ncurses +endif + +ifneq ($(findstring SunOS, $(TEC_UNAME)), ) + LIBS += dl +endif + +ifneq ($(findstring AIX, $(TEC_UNAME)), ) + FLAGS += -mminimal-toc + OPTFLAGS = -mminimal-toc -ansi -pedantic + LFLAGS = -Xlinker "-bbigtoc" +endif + +ifeq ($(TEC_UNAME), vc8) + ifdef DBG + #debug info not working for vc8 linker + define DBG + endef + endif +endif |