[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / src / usr.bin / dig

File: [local] / src / usr.bin / dig / Makefile (download)

Revision 1.4, Mon Sep 14 08:39:12 2020 UTC (3 years, 8 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, HEAD
Changes since 1.3: +1 -2 lines

Bunch of dead stores and otherwise unused stuff lets us get rid of
unix/net.{c.h}. We need to sprinkle in a few #includes that net.h
dragged in.
OK deraadt

#	$OpenBSD: Makefile,v 1.4 2020/09/14 08:39:12 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/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>