-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
45 lines (39 loc) · 1.11 KB
/
Makefile
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
PREFIX?=/usr/local
BINDIR=${PREFIX}/sbin
MANDIR= ${PREFIX}/man/man
PROG=adsuck
MAN=adsuck.8
SRCS= adsuck.c log.c resolv.c
COPT+= -O2
DEBUG+= -g
CFLAGS+= -Wall
CFLAGS+= -I/usr/local/include
LDFLAGS+= -L/usr/local/lib -lldns -levent_extra -levent_core
BUILDVERSION != sh "${.CURDIR}/buildver.sh"
.if !${BUILDVERSION} == ""
CPPFLAGS+= -DADSUCK_BUILDSTR=\"$(BUILDVERSION)\"
.endif
beforeinstall:
install -m 755 -d /var/adsuck/files
install -m 644 ${.CURDIR}/files/hosts.small /var/adsuck/files
install -m 644 ${.CURDIR}/files/hosts.yoyo /var/adsuck/files
install -m 644 ${.CURDIR}/files/Hosts.blc /var/adsuck/files
install -m 644 ${.CURDIR}/files/Hosts.mis /var/adsuck/files
install -m 644 ${.CURDIR}/files/Hosts.pub /var/adsuck/files
install -m 644 ${.CURDIR}/files/Hosts.rsk /var/adsuck/files
install -m 644 ${.CURDIR}/files/Hosts.sex /var/adsuck/files
install -m 644 ${.CURDIR}/files/Hosts.trc /var/adsuck/files
# clang targets
.if ${.TARGETS:M*analyze*}
CC=clang
CXX=clang++
CPP=clang -E
CFLAGS+=--analyze
.elif ${.TARGETS:M*clang*}
CC=clang
CXX=clang++
CPP=clang -E
.endif
analyze: all
clang: all
.include <bsd.prog.mk>