summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 50f1669f2cda1b315dbfbde4904b65141d37a450 (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
30
# $Id$

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