Makefiles, util.signal: Add lsignal library for catching POSIX signals
[prosody.git] / util-src / Makefile
index 4058b59da15e71c55f94277237ae3b7e3f23a309..b3753d48521c11ea64e6ba4a0230a2e421d46fdb 100644 (file)
@@ -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
+