aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-03-18 22:46:36 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-03-18 22:46:36 -0500
commit2cb28a7dd7426125e4d08e358477f4248cc4a918 (patch)
tree76e6fbb94eb35ac77c2d1959bfd169fe95bc4289 /Makefile
parent93a725e56dabfe2c9eae6938e54d6d0342325732 (diff)
downloadluasignal-2cb28a7dd7426125e4d08e358477f4248cc4a918.tar.gz
luasignal-2cb28a7dd7426125e4d08e358477f4248cc4a918.zip
portability - handle distros that use weird naming for the lua libraries and include paths
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 6f51358..ab74b97 100644
--- a/Makefile
+++ b/Makefile
@@ -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)