summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 4156e3bda5409fca1191665c78cb8e439bc81592 (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 avahi-client)
CFLAGS=$(shell pkg-config --cflags avahi-client)

all: mod_dnssd.la

mod_dnssd.la: mod_dnssd.c
	$(APXS) -c $(CFLAGS) $(LIBS) mod_dnssd.c

install: mod_dnssd.la
	$(APXS) -i -a mod_dnssd.la 

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