aboutsummaryrefslogtreecommitdiffstats
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
parent5e043f29c714afe3d55c2ad054c865fea4afc8d4 (diff)
downloadprosody-23e9b6c71ad350608d617608b4de02709c9b37e1.tar.gz
prosody-23e9b6c71ad350608d617608b4de02709c9b37e1.zip
Makefiles, util.signal: Add lsignal library for catching POSIX signals
-rw-r--r--Makefile3
-rw-r--r--util-src/Makefile7
2 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 606d92b0..4ca38d3d 100644
--- a/Makefile
+++ b/Makefile
@@ -43,6 +43,9 @@ util/hashes.so:
util/pposix.so:
$(MAKE) install -C util-src
+util/signal.so:
+ $(MAKE) install -C util-src
+
prosody.install: prosody
sed "s|^CFG_SOURCEDIR=.*;$$|CFG_SOURCEDIR='$(INSTALLEDSOURCE)';|; \
s|^CFG_CONFIGDIR=.*;$$|CFG_CONFIGDIR='$(INSTALLEDCONFIG)';|; \
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
+