1255597Sdes# $FreeBSD$ 2255597Sdes 3255597Sdes# Vendor sources and generated files 4255597SdesLDNSDIR= ${.CURDIR}/../../contrib/ldns 5255597SdesUNBOUNDDIR= ${.CURDIR}/../../contrib/unbound 6255597Sdes 7255597Sdes# Hold my beer and watch this 8269257Sdes.PATH: ${UNBOUNDDIR} ${UNBOUNDDIR}/iterator ${UNBOUNDDIR}/ldns ${UNBOUNDDIR}/libunbound ${UNBOUNDDIR}/services ${UNBOUNDDIR}/services/cache ${UNBOUNDDIR}/util ${UNBOUNDDIR}/util/data ${UNBOUNDDIR}/util/storage ${UNBOUNDDIR}/validator 9255597Sdes 10255597SdesLIB= unbound 11255597SdesPRIVATELIB= 12255597Sdes 13269257SdesCFLAGS= -I${UNBOUNDDIR} -I${LDNSDIR} -I${.OBJDIR} 14255597Sdes 15269257SdesSRCS= alloc.c autotrust.c config_file.c configlexer.l configparser.y \ 16255597Sdes context.c dname.c dns.c dnstree.c fptr_wlist.c infra.c \ 17255597Sdes iter_delegpt.c iter_donotq.c iter_fwd.c iter_hints.c iter_priv.c \ 18269257Sdes iter_resptype.c iter_scrub.c iter_utils.c iterator.c keyraw.c \ 19269257Sdes libunbound.c libworker.c listen_dnsport.c localzone.c locks.c log.c \ 20269257Sdes lookup3.c lruhash.c mesh.c mini_event.c modstack.c module.c \ 21269257Sdes msgencode.c msgparse.c msgreply.c net_help.c netevent.c \ 22269257Sdes outbound_list.c outside_network.c packed_rrset.c parse.c \ 23269257Sdes parseutil.c random.c rbtree.c regional.c rrdef.c rrset.c rtt.c \ 24269257Sdes sbuffer.c slabhash.c str2wire.c timehist.c tube.c val_anchor.c \ 25255597Sdes val_kcache.c val_kentry.c val_neg.c val_nsec.c val_nsec3.c \ 26255597Sdes val_secalgo.c val_sigcrypt.c val_utils.c validator.c \ 27269257Sdes winsock_event.c wire2str.c 28255597Sdes 29255597SdesWARNS?= 3 30255597Sdes 31255597SdesDPADD+= ${LIBSSL} ${LIBCRYPTO} ${LIBPTHREAD} 32255597SdesLDADD+= -lssl -lcrypto -lpthread 33255597Sdes 34269257Sdes# Misnamed file in upstream source 35269257Sdesconfiglexer.l: configlexer.lex 36269257Sdes cp -p ${.ALLSRC} ${.TARGET} 37269257SdesCLEANFILES+= configlexer.l 38269257Sdes 39269257Sdes# Symbol prefix for lex and yacc 40269257SdesLFLAGS= -Pub_c_ 41269257SdesYFLAGS= -pub_c_ -d 42269257Sdes 43255597Sdes.include <bsd.lib.mk> 44