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