1# $FreeBSD$ 2 3# Vendor sources and generated files 4LDNSDIR= ${.CURDIR}/../../contrib/ldns 5UNBOUNDDIR= ${.CURDIR}/../../contrib/unbound 6 7# Hold my beer and watch this 8.PATH: ${UNBOUNDDIR} ${UNBOUNDDIR}/dns64 ${UNBOUNDDIR}/iterator ${UNBOUNDDIR}/sldns ${UNBOUNDDIR}/libunbound ${UNBOUNDDIR}/services ${UNBOUNDDIR}/services/cache ${UNBOUNDDIR}/util ${UNBOUNDDIR}/util/data ${UNBOUNDDIR}/util/storage ${UNBOUNDDIR}/validator 9 10LIB= unbound 11PRIVATELIB= 12PACKAGE= unbound 13 14CFLAGS= -I${UNBOUNDDIR} -I${LDNSDIR} -I${.OBJDIR} 15 16SRCS= alloc.c autotrust.c config_file.c configlexer.l configparser.y \ 17 context.c dname.c dns.c dns64.c dnstree.c fptr_wlist.c infra.c \ 18 iter_delegpt.c iter_donotq.c iter_fwd.c iter_hints.c iter_priv.c \ 19 iter_resptype.c iter_scrub.c iter_utils.c iterator.c keyraw.c \ 20 libunbound.c libworker.c listen_dnsport.c localzone.c locks.c log.c \ 21 lookup3.c lruhash.c mesh.c mini_event.c modstack.c module.c \ 22 msgencode.c msgparse.c msgreply.c net_help.c netevent.c \ 23 outbound_list.c outside_network.c packed_rrset.c parse.c \ 24 parseutil.c random.c rbtree.c regional.c rrdef.c rrset.c rtt.c \ 25 sbuffer.c slabhash.c str2wire.c timehist.c tube.c val_anchor.c \ 26 val_kcache.c val_kentry.c val_neg.c val_nsec.c val_nsec3.c \ 27 val_secalgo.c val_sigcrypt.c val_utils.c validator.c \ 28 winsock_event.c wire2str.c 29 30WARNS?= 3 31 32LIBADD= ssl crypto pthread 33 34# Misnamed file in upstream source 35configlexer.l: configlexer.lex 36 ${CP} ${.ALLSRC} ${.TARGET} 37CLEANFILES+= configlexer.l 38 39# Symbol prefix for lex and yacc 40LFLAGS= -Pub_c_ 41YFLAGS= -pub_c_ -d 42 43.include <bsd.lib.mk> 44