diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | util-src/Makefile | 20 |
2 files changed, 13 insertions, 9 deletions
@@ -13,6 +13,8 @@ INSTALLEDCONFIG = $(SYSCONFDIR) INSTALLEDMODULES = $(PREFIX)/lib/prosody/modules INSTALLEDDATA = $(DATADIR) +.PHONY: all clean install + all: prosody.install prosodyctl.install prosody.cfg.lua.install prosody.version $(MAKE) -C util-src install diff --git a/util-src/Makefile b/util-src/Makefile index 1ca934ad..2c8243f9 100644 --- a/util-src/Makefile +++ b/util-src/Makefile @@ -10,8 +10,19 @@ CC?=gcc CXX?=g++ LD?=gcc +.PHONY: all install clean .SUFFIXES: .c .o .so +all: encodings.so hashes.so pposix.so signal.so + +install: encodings.so hashes.so pposix.so signal.so + install *.so ../util/ + +clean: + rm -f *.o + rm -f *.so + rm -f ../util/*.so + encodings.so: encodings.o MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET; $(CC) -o $@ $< $(LDFLAGS) $(IDNA_LIBS) @@ -27,12 +38,3 @@ hashes.so: hashes.o MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET; $(LD) -o $@ $< $(LDFLAGS) -all: encodings.so hashes.so pposix.so signal.so - -install: encodings.so hashes.so pposix.so signal.so - install *.so ../util/ - -clean: - rm -f *.o - rm -f *.so - rm -f ../util/*.so |