summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-11-20 16:11:36 +0000
committerLennart Poettering <lennart@poettering.net>2005-11-20 16:11:36 +0000
commit50537cb3df3e0a9e6ad872201e28c5d92c0709cd (patch)
tree67a0fd872a6ed9a093ab37e0b0e1249ada936aeb /Makefile
parent8bb11c763e6a03d99be7215885c4d6440a74b7d7 (diff)
modify build system to use apxs
git-svn-id: file:///home/lennart/svn/public/mod_dnssd/trunk@4 634eccf8-0006-0410-930e-e16565b0b7de
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile29
1 files changed, 29 insertions, 0 deletions
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