config

changeset 15
dc303ec39b54
parent 14
b4e6b167e020
child 16
1f41c74ce686
equal deleted inserted replaced
14:b4e6b167e020 15:dc303ec39b54
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= 502
21
22 # Compilation parameters
23 CWARNS = -Wall -pedantic \
24 -Waggregate-return \
25 -Wcast-align \
26 -Wmissing-prototypes \
27 -Wstrict-prototypes \
28 -Wnested-externs \
29 -Wpointer-arith \
30 -Wshadow \
31 -Wwrite-strings
32
33 CFLAGS = $(CWARNS) -ansi -O2 -fPIC -I$(LUA_INC) \
34 -I$(EXPAT_INC)
35 CC = gcc

mercurial