diff options
author | jluehrs2 <jluehrs2@uiuc.edu> | 2008-03-18 22:46:36 -0500 |
---|---|---|
committer | jluehrs2 <jluehrs2@uiuc.edu> | 2008-03-18 22:46:36 -0500 |
commit | 2cb28a7dd7426125e4d08e358477f4248cc4a918 (patch) | |
tree | 76e6fbb94eb35ac77c2d1959bfd169fe95bc4289 | |
parent | 93a725e56dabfe2c9eae6938e54d6d0342325732 (diff) | |
download | luasignal-2cb28a7dd7426125e4d08e358477f4248cc4a918.tar.gz luasignal-2cb28a7dd7426125e4d08e358477f4248cc4a918.zip |
portability - handle distros that use weird naming for the lua libraries and include paths
-rw-r--r-- | Make.config | 6 | ||||
-rw-r--r-- | Makefile | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/Make.config b/Make.config index 7c25fac..7833518 100644 --- a/Make.config +++ b/Make.config @@ -1,6 +1,12 @@ # Path to your Lua C library directory (LUA_CPATH) LUA_DIR = /usr/local/lib/lua/5.1 +# Some distros require, for example, lua5.1 here +LUA_LIBNAME = lua + +# Some distros put Lua include files in /usr/include/lua5.1, for example +LUA_INCLUDEPATH = /usr/include + # Set this to the path of your luadoc executable if you want to regenerate the # documentation and the luadoc script isn't in your PATH LUADOC = luadoc @@ -5,10 +5,9 @@ OBJ = src/signal.o \ src/signames.o \ src/queue.o CC = gcc -INCLUDES = +INCLUDES = -I$(LUA_INCLUDEPATH) DEFINES = -LIBS = -llua -# COMMONFLAGS = -fpic -Werror -Wall -pedantic -O0 -g -pipe +LIBS = -l$(LUA_LIBNAME) COMMONFLAGS = -fpic -Werror -Wall -pedantic -O2 -g -pipe CFLAGS = -c $(INCLUDES) $(DEFINES) $(COMMONFLAGS) LDFLAGS = -shared $(LIBS) $(COMMONFLAGS) |