summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: a484ebc8ae1a22e89bad4b6afb29db2fe631b9a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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