Blob


1 CC=gcc
2 #CFLAGS=-DDEBUG
3 CFLAGS=
4 LDADD= -ldb -lresolv -lcrypto -lrt
5 YACC=bison
6 AR=ar
10 build:
11 $(YACC) $(CFLAGS) -y -d parse.y
12 mv -f y.tab.c parse.c
13 $(CC) $(CFLAGS) -c additional.c
14 $(CC) $(CFLAGS) -c main.c
15 $(CC) $(CFLAGS) -c parse.c
16 $(CC) $(CFLAGS) -c reply.c
17 $(CC) $(CFLAGS) -c region.c
18 $(CC) $(CFLAGS) -c wildcard.c
19 $(CC) $(CFLAGS) -c recurse.c
20 $(CC) $(CFLAGS) -c log.c
21 $(CC) $(CFLAGS) -c axfr.c
22 $(CC) $(CFLAGS) -c filter.c
23 $(CC) $(CFLAGS) -c ratelimit.c
24 $(CC) $(CFLAGS) -c whitelist.c
25 $(AR) -x libressllibcrypto.a libcompat_la-arc4random.o
26 $(AR) -x libressllibcrypto.a libcompat_la-getentropy_linux.o
27 $(AR) -x libressllibcrypto.a libcompatnoopt_la-explicit_bzero.o
28 $(CC) $(CFLAGS) -o wildcarddnsd additional.o main.o parse.o reply.o region.o wildcard.o recurse.o log.o axfr.o filter.o ratelimit.o whitelist.o libcompat_la-arc4random.o libcompat_la-getentropy_linux.o libcompatnoopt_la-explicit_bzero.o $(LDADD)
31 install:
32 test -f wildcarddnsd && install -m 555 wildcarddnsd /usr/local/sbin/
33 mkdir -p /usr/local/man/man8 && install -m 444 wildcarddnsd.8 /usr/local/man/man8
34 mkdir -p /usr/local/man/man5 && install -m 444 wildcarddns.conf.5 /usr/local/man/man5
37 clean:
38 rm -f *.o wildcarddnsd