aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-03-18 22:53:50 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-03-18 22:53:50 -0500
commitb879042e564832622d53da8764efe1625aac9a26 (patch)
tree9fc41db65df203dea6eaeb886c52fe5f23745263 /Makefile
parent2cb28a7dd7426125e4d08e358477f4248cc4a918 (diff)
downloadluasignal-b879042e564832622d53da8764efe1625aac9a26.tar.gz
luasignal-b879042e564832622d53da8764efe1625aac9a26.zip
portability - make this build properly on a mac
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ab74b97..94eb51a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
include Make.config
+include Make.$(OS)
BIN = src/signal.so
OBJ = src/signal.o \
@@ -8,7 +9,7 @@ CC = gcc
INCLUDES = -I$(LUA_INCLUDEPATH)
DEFINES =
LIBS = -l$(LUA_LIBNAME)
-COMMONFLAGS = -fpic -Werror -Wall -pedantic -O2 -g -pipe
+COMMONFLAGS = -Werror -Wall -pedantic -O2 -g -pipe $(OS_FLAGS)
CFLAGS = -c $(INCLUDES) $(DEFINES) $(COMMONFLAGS)
LDFLAGS = -shared $(LIBS) $(COMMONFLAGS)