config

changeset 0
24d141cb2d1e
child 13
a120beb5a2f4
equal deleted inserted replaced
-1:000000000000 0:24d141cb2d1e
1 # Installation directories
2 # System's libraries directory (where binary libraries are installed)
3 LUA_LIBDIR= /usr/local/lib/lua/5.0
4 # System's lua directory (where Lua libraries are installed)
5 LUA_DIR= /usr/local/share/lua/5.0
6 # Lua includes directory
7 LUA_INC= /usr/local/include
8 # Expat includes directory
9 EXPAT_INC= /usr/local/include
10
11 # OS dependent
12 LIB_OPTION= -shared #for Linux
13 #LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
14
15 LIBNAME= $T.so.$V
16 # Lua version number
17 # (according to Lua 5.1 definition:
18 # first version digit * 100 + second version digit
19 # e.g. Lua 5.0.2 => 500, Lua 5.1 => 501, Lua 5.1.1 => 501)
20 LUA_VERSION_NUM= 500
21 COMPAT_DIR= ../compat/src
22
23 # Compilation parameters
24 CWARNS = -Wall -pedantic \
25 -Waggregate-return \
26 -Wcast-align \
27 -Wmissing-prototypes \
28 -Wstrict-prototypes \
29 -Wnested-externs \
30 -Wpointer-arith \
31 -Wshadow \
32 -Wwrite-strings
33
34 CFLAGS = $(CWARNS) -ansi -O2 -I$(LUA_INC) \
35 -I$(COMPAT_DIR) -I$(EXPAT_INC)
36 CC = gcc

mercurial