aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/Makefile
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-04-12 02:53:00 +0100
committerMatthew Wild <mwild1@gmail.com>2009-04-12 02:53:00 +0100
commit23e9b6c71ad350608d617608b4de02709c9b37e1 (patch)
treea41d9e0256e5d55671248386527a0d2d85de8014 /util-src/Makefile
parent5e043f29c714afe3d55c2ad054c865fea4afc8d4 (diff)
downloadprosody-23e9b6c71ad350608d617608b4de02709c9b37e1.tar.gz
prosody-23e9b6c71ad350608d617608b4de02709c9b37e1.zip
Makefiles, util.signal: Add lsignal library for catching POSIX signals
Diffstat (limited to 'util-src/Makefile')
-rw-r--r--util-src/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/util-src/Makefile b/util-src/Makefile
index 4058b59d..b3753d48 100644
--- a/util-src/Makefile
+++ b/util-src/Makefile
@@ -10,7 +10,7 @@ CC?=gcc
LD?=gcc
-all: encodings.so hashes.so pposix.so
+all: encodings.so hashes.so pposix.so signal.so
install: encodings.so hashes.so pposix.so
install *.so ../util/
@@ -37,3 +37,8 @@ pposix.o: pposix.c
pposix.so: pposix.o
export MACOSX_DEPLOYMENT_TARGET="10.3"; $(LD) $(LFLAGS) -o pposix.so pposix.o -L$(LUA_LIBDIR) -llua$(LUA_SUFFIX)
+lsignal.o: lsignal.c
+ $(CC) $(CFLAGS) -I$(LUA_INCDIR) -c -o lsignal.o lsignal.c
+signal.so: lsignal.o
+ export MACOSX_DEPLOYMENT_TARGET="10.3"; $(LD) $(LFLAGS) -o signal.so lsignal.o
+