# Installation directories # System's libraries directory (where binary libraries are installed) LUA_LIBDIR= /usr/local/lib/lua/5.0 # System's lua directory (where Lua libraries are installed) LUA_DIR= /usr/local/share/lua/5.0 # Lua includes directory LUA_INC= /usr/local/include/lua5 # Expat includes directory EXPAT_INC= /usr/local/include # OS dependent LIB_OPTION= -shared #for Linux #LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X LIBNAME= lib$T-$V.so COMPAT_DIR= ../compat/src # Compilation parameters # On FreeBSD systems, the following line should be commented DLLIB= -ldl #LUA_LIBS= -llua50 -lm CWARNS = -Wall -pedantic \ -Waggregate-return \ -Wcast-align \ -Wmissing-prototypes \ -Wstrict-prototypes \ -Wnested-externs \ -Wpointer-arith \ -Wshadow \ -Wwrite-strings CFLAGS = $(CONFIG) $(CWARNS) -ansi -O2 -I$(LUA_INC) \ -I$(COMPAT_DIR) -I$(EXPAT_INC) CC = gcc