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