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}/iterator ${UNBOUNDDIR}/ldns ${UNBOUNDDIR}/libunbound ${UNBOUNDDIR}/services ${UNBOUNDDIR}/services/cache ${UNBOUNDDIR}/util ${UNBOUNDDIR}/util/data ${UNBOUNDDIR}/util/storage ${UNBOUNDDIR}/validator 9 10LIB= unbound 11PRIVATELIB= 12 13CFLAGS= -I${UNBOUNDDIR} -I${LDNSDIR} -I${.OBJDIR} 14 15SRCS= alloc.c autotrust.c config_file.c configlexer.l configparser.y \ 16 context.c dname.c dns.c dnstree.c fptr_wlist.c infra.c \ 17 iter_delegpt.c iter_donotq.c iter_fwd.c iter_hints.c iter_priv.c \ 18 iter_resptype.c iter_scrub.c iter_utils.c iterator.c keyraw.c \ 19 libunbound.c libworker.c listen_dnsport.c localzone.c locks.c log.c \ 20 lookup3.c lruhash.c mesh.c mini_event.c modstack.c module.c \ 21 msgencode.c msgparse.c msgreply.c net_help.c netevent.c \ 22 outbound_list.c outside_network.c packed_rrset.c parse.c \ 23 parseutil.c random.c rbtree.c regional.c rrdef.c rrset.c rtt.c \ 24 sbuffer.c slabhash.c str2wire.c timehist.c tube.c val_anchor.c \ 25 val_kcache.c val_kentry.c val_neg.c val_nsec.c val_nsec3.c \ 26 val_secalgo.c val_sigcrypt.c val_utils.c validator.c \ 27 winsock_event.c wire2str.c 28 29WARNS?= 3 30 31DPADD+= ${LIBSSL} ${LIBCRYPTO} ${LIBPTHREAD} 32LDADD+= -lssl -lcrypto -lpthread 33 34# Misnamed file in upstream source 35configlexer.l: configlexer.lex 36 cp -fp ${.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