| 1 |
# Installation directories |
| 2 |
|
| 3 |
# Default installation prefix |
| 4 |
PREFIX=/usr/local |
| 5 |
|
| 6 |
LUA_VERSION = 5.1 |
| 7 |
|
| 8 |
# System's libraries directory (where binary libraries are installed) |
| 9 |
LUA_LIBDIR= $(PREFIX)/lib/lua/$(LUA_VERSION) |
| 10 |
|
| 11 |
# Lua includes directory |
| 12 |
LUA_INC += -I$(PREFIX)/include |
| 13 |
LUA_INC += -I/usr/include/lua$(LUA_VERSION) -I/usr/include/lua/$(LUA_VERSION) |
| 14 |
|
| 15 |
# OS dependent |
| 16 |
LIB_OPTION= -shared #for Linux |
| 17 |
#LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X |
| 18 |
|
| 19 |
# Minimum runtime OS version on macOS |
| 20 |
MACOSX_DEPLOYMENT_TARGET= 10.5 |
| 21 |
|
| 22 |
# Compilation directives |
| 23 |
WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -pedantic |
| 24 |
INCS= $(LUA_INC) |
| 25 |
CFLAGS= $(WARN) $(INCS) |
| 26 |
CC= gcc |
| 27 |
|
| 28 |
# $Id: config,v 1.21 2007/10/27 22:42:32 carregal Exp $ |