From 50537cb3df3e0a9e6ad872201e28c5d92c0709cd Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 20 Nov 2005 16:11:36 +0000 Subject: modify build system to use apxs git-svn-id: file:///home/lennart/svn/public/mod_dnssd/trunk@4 634eccf8-0006-0410-930e-e16565b0b7de --- Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a484ebc --- /dev/null +++ b/Makefile @@ -0,0 +1,29 @@ +APXS=/usr/bin/apxs2 +APACHECTL=apache2ctl +LIBS=$(shell pkg-config --libs howl) +CFLAGS=$(shell pkg-config --cflags howl) + +all: mod_dnssd.so + +mod_dnssd.so: mod_dnssd.c + $(APXS) -c $(CFLAGS) $(LIBS) mod_dnssd.c + +install: all + $(APXS) -i -a -n dnssd mod_dnssd.so + +clean: + rm -rf *.o *.so *.loT .deps/ *.la *.lo *.slo .libs + +reload: install restart + +start: + $(APACHECTL) start + +restart: + $(APACHECTL) restart + +stop: + $(APACHECTL) stop + + +.PHONY: all install clean reload start restart stop -- cgit