summaryrefslogtreecommitdiff
path: root/usr.bin/dig/Makefile
blob: 276742dd66752dc632f36db54f0285f5562f0381 (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
31
32
33
34
35
36
37
38
39
40
#	$OpenBSD: Makefile,v 1.3 2020/02/24 17:57:54 florian Exp $

PROG=		dig
SRCS=		dig.c dighost.c host.c nslookup.c
MAN=		dig.1 host.1 nslookup.1
LINKS=		${BINDIR}/dig ${BINDIR}/host \
		${BINDIR}/dig ${BINDIR}/nslookup
CLEANFILES+=	code.h gen gen.d

.include "${.CURDIR}/lib/dns/Makefile.inc"
.include "${.CURDIR}/lib/isc/Makefile.inc"
.include "${.CURDIR}/lib/isc/unix/Makefile.inc"
.include "${.CURDIR}/lib/isccfg/Makefile.inc"
.include "${.CURDIR}/lib/lwres/Makefile.inc"

CFLAGS+= -Wall -I${.CURDIR} -I${.OBJDIR}
CFLAGS+= -I ${.CURDIR}/bin/dig/include
CFLAGS+= -I ${.CURDIR}/lib/dns/include
CFLAGS+= -I ${.CURDIR}/lib/isc/include
CFLAGS+= -I ${.CURDIR}/lib/isc/unix/include
CFLAGS+= -I ${.CURDIR}/lib/isccfg/include
CFLAGS+= -I ${.CURDIR}/lib/lwres/include
CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes
CFLAGS+= -Wmissing-declarations
CFLAGS+= -Wshadow -Wpointer-arith
CFLAGS+= -Wsign-compare
CFLAGS+= -DVERSION=\"9.10.8-P1\"
YFLAGS=
LDADD+=	-lcrypto
DPADD+= ${LIBCRYPTO}

BUILDFIRST = code.h

gen: lib/dns/gen.c
	${HOSTCC} ${CFLAGS} ${.CURDIR}/lib/dns/gen.c -o $@

code.h:	gen
	./gen -s ${.CURDIR}/lib/dns > code.h

.include <bsd.prog.mk>