1# $NetBSD: Makefile,v 1.6 2024/02/21 22:50:56 christos Exp $ 2 3LDADD+=-lns 4DPADD+=${LIBNS} 5 6.include <bsd.init.mk> 7 8PROG= named 9MAN= named.8 named.conf.5 10BINDIR= /usr/sbin 11 12DIST=${IDIST}/bin/named 13CPPFLAGS+=-I${DIST}/include -I${DIST}/unix/include 14CPPFLAGS+=-I${LIBUVDIR}/dist/include 15CPPFLAGS+=-DNO_VERSION_DATE 16CPPFLAGS+=-DNAMED_SYSCONFDIR=\"${SYSCONFDIR}\" 17CPPFLAGS+=-DNAMED_LOCALSTATEDIR=\"/var\" 18 19.if defined(HAVE_GCC) || defined(HAVE_LLVM) 20.for f in client 21COPTS.${f}.c+= -fno-strict-aliasing 22.endfor 23.endif 24 25CWARNFLAGS.clang+= -Wno-tautological-constant-out-of-range-compare 26 27.PATH: ${DIST}/unix ${DIST} ${IDIST}/doc/man 28 29SRCS_UNIX= os.c dlz_dlopen_driver.c 30SRCS= builtin.c config.c control.c controlconf.c \ 31 log.c logconf.c \ 32 main.c server.c statschannel.c \ 33 tkeyconf.c transportconf.c tsigconf.c \ 34 xsl.c zoneconf.c ${SRCS_UNIX} 35 36 37xsl.c: bind9.xsl 38 ${MKTARGET_CREATE} 39 (echo 'const char xslmsg[] =' && \ 40 ${TOOL_SED} -e 's,\",\\\",g' \ 41 -e 's,^,\",' \ 42 -e 's,$$,\\n\",' && \ 43 echo ";") \ 44 < ${.ALLSRC} > ${.TARGET} 45 46CLEANFILES+= xsl.c 47 48main.o: ${VERSIONFILE} 49 50 51.include <bsd.prog.mk> 52