--- ./config.orig 2014-06-06 21:17:17.000000000 +0000 +++ ./config 2014-06-06 21:17:45.000000000 +0000 @@ -1,14 +1,14 @@ ############################################################# #Linux/BSD/Mac -LUA_DIR= /usr/local/share/lua/5.1.1 -LUA_LIBDIR= /usr/local/lib -LUA_INCLUDES= /usr/local/include -JDK= $(JAVA_HOME) +LUA_DIR= %%LUA_DIR%% +LUA_LIBDIR= %%LUA_LIBDIR%% +LUA_INCLUDES= %%LUA_INCDIR%% +JDK= %%JAVA_HOME%% # For Mac OS, comment the above line and uncomment this one #JDK=/Library/Java/Home # Full path to Lua static library -LIB_LUA=$(LUA_LIBDIR)/liblua.a +LIB_LUA=$(LUA_LIBDIR)/liblua-%%LUA_VER%%.a #Linux/BSD LIB_EXT= .so @@ -23,13 +23,13 @@ #LIB_OPTION= -dynamiclib -all_load ## On FreeBSD and Mac OS systems, the following line should be commented -DLLIB= -ldl +#DLLIB= -ldl WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -INCS= -I$(JDK)/include -I$(JDK)/include/linux -I$(LUA_INCLUDES) +INCS= -I$(JDK)/include -I$(JDK)/include/freebsd -I$(LUA_INCLUDES) CFLAGS= $(WARN) $(INCS) -CC= gcc +#CC= gcc #########################################################