--- config.orig 2012-02-13 11:48:55.000000000 +0100
+++ config 2012-02-13 11:51:37.000000000 +0100
# Installation directories
# System's libraries directory (where binary libraries are installed)
-LUA_LIBDIR= $(PREFIX)/lib/lua/5.1
+LUA_LIBDIR= $(DESTDIR)$(PREFIX)/lib/lua/5.1
# System's lua directory (where Lua libraries are installed)
-LUA_DIR= $(PREFIX)/share/lua/5.1
+LUA_DIR= $(DESTDIR)$(PREFIX)/share/lua/5.1
LUA_INC= $(PREFIX)/include
-LIB_OPTION= -shared #for Linux
-#LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
+#LIB_OPTION= -shared #for Linux
+LIB_OPTION= $(LDFLAGS) -bundle -undefined dynamic_lookup
-WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -Wpointer-arith -pedantic
+WARN= -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -Wpointer-arith -pedantic
+CFLAGS+= $(WARN) $(INCS)
# $Id: config,v 1.7 2007/10/29 22:51:39 carregal Exp $