removed apps
[luayats.git] / config.cygwin
blob88aba6726b7088853ee32c806d4a2aba19ab6c8c
1 # Get the system name
2 SYSTEM=$(shell uname -o)
4 # Lua version to use
5 LUAVERSION=5.1
6 TOLUAVERSION=1.0.92
8 # Repository
9 REPOSITORY=file:///J:/leuwer/svn/luayats
11 # Version Information
12 MAJOR=4
13 MINOR=0
14 VERSION_INFO=-DVMAJOR=$(MAJOR) -DVMINOR=$(MINOR)
16 # List of modules to process
17 MODULES = kernel abr lua misc muxdmx muxevt polshap src statist tcpip user win rstp
18 LUAMODULES = agere block gui/editor gui/menu config dummy graphics misc muxdmx src getopt\
19              switch tcpip user core rstp polshap statist muxevt gui/runctrl  \
20              logging object stdlib
21 # Customize compiler
22 # Profiling options
23 #USERCFLAGS=-DDATA_OBJECT_TRACE=1 -pg -g -ftest-coverage -fprofile-arcs
24 #USERLDFLAGS=-pg -g
26 #USERCFLAGS=  -g -ggdb
27 #USERLDFLAGS= -g -ggdb
29 #USERCFLAGS= -DEVENT_DEBUG=1 -O3
30 #USERCFLAGS= -DEVENT_LOG=1 -O3
32 USERCFLAGS=  -O3
33 USERLDFLAGS= -O3
35 ifeq ($(SYSTEM), Cygwin)
36 USERLDFLAGS+=
37 else
38 USERLDFLAGS+= -Wl,-E
39 endif
41 # Customize linker's search path
42 INCLUDEDIR=/usr/local/include
43 USERLIBDIR=
44 USERINCDIR=
46 # Lua Customization
47 LUA=lua
48 ifeq ($(LUAVERSION), 5.1)
49 LUAINC=$(INCLUDEDIR)
50 else
51 LUAINC=$(INCLUDEDIR)/lua50
52 endif
54 # Tolua Customization
56 ifeq ($(TOLUAVERSION), 1.0.6)
57   TOLUA_VERSION=1.0.6
58   TOLUA_EXT=106
59   TOLUA=tolua++106
60   TOLUAINC=$(INCLUDEDIR)/tolua++/$(TOLUA_VERSION)
61 else
62   TOLUA_VERSION=1.0.92a
63   TOLUA_EXT=51
64   TOLUA=tolua++51
65   TOLUAINC=$(INCLUDEDIR)/tolua++/$(TOLUA_VERSION)
66 endif
68 ifeq ($(SYSTEM), Cygwin)
69 EXE=.exe
70 ifeq ($(LUAVERSION), 5.1)
71 LUALIBS = -ltolua++$(TOLUA_EXT) -lreadline -lhistory -lncurses -llua
72 else
73 LUALIBS = -llua50 -llualib50 -ltolua++$(TOLUA_EXT) -lreadline -lhistory -lncurses 
74 endif
76 # IUP Customisation
77 IUPINC=$(INCLUDEDIR)/iup
78 IUPLIBS = -liup
80 # CD Customisation
81 CDINC=$(INCLUDEDIR)/cd
82 CDLIBS = -lcd -liupcd 
84 else
85 EXE=
86 LUALIBS = -llua50 -llualib50 -ltolua++$(TOLUA_EXT) -lreadline -lhistory -lncurses -ldl
88 # IUP Customisation
89 IUPINC=$(INCLUDEDIR)/iup
90 IUPLIBS = -liup
92 # CD Customisation
93 CDINC=$(INCLUDEDIR)/cd
94 #CDLIBS = -lcd -lcdiup -lcdlua5 -lcdluaiup5 -lcdpdflib
95 CDLIBS = -lcd 
96 endif