2013-09-15 10:51:23 -04:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
2016-02-04 16:16:35 -05:00
|
|
|
PACKAGE=lib${LIB}
|
2013-09-15 10:51:23 -04:00
|
|
|
# Vendor sources and generated files
|
|
|
|
|
LDNSDIR= ${.CURDIR}/../../contrib/ldns
|
|
|
|
|
UNBOUNDDIR= ${.CURDIR}/../../contrib/unbound
|
|
|
|
|
|
|
|
|
|
# Hold my beer and watch this
|
2015-09-17 12:10:11 -04:00
|
|
|
.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
|
2013-09-15 10:51:23 -04:00
|
|
|
|
|
|
|
|
LIB= unbound
|
|
|
|
|
PRIVATELIB=
|
2015-03-05 11:19:45 -05:00
|
|
|
PACKAGE= unbound
|
2013-09-15 10:51:23 -04:00
|
|
|
|
2016-03-11 15:04:32 -05:00
|
|
|
CFLAGS+= -I${UNBOUNDDIR} -I${LDNSDIR} -I${.OBJDIR}
|
2013-09-15 10:51:23 -04:00
|
|
|
|
2016-02-11 12:37:02 -05:00
|
|
|
SRCS= alloc.c as112.c autotrust.c config_file.c configlexer.l configparser.y \
|
2015-01-02 21:40:51 -05:00
|
|
|
context.c dname.c dns.c dns64.c dnstree.c fptr_wlist.c infra.c \
|
2013-09-15 10:51:23 -04:00
|
|
|
iter_delegpt.c iter_donotq.c iter_fwd.c iter_hints.c iter_priv.c \
|
2014-05-14 23:30:03 -04:00
|
|
|
iter_resptype.c iter_scrub.c iter_utils.c iterator.c keyraw.c \
|
|
|
|
|
libunbound.c libworker.c listen_dnsport.c localzone.c locks.c log.c \
|
|
|
|
|
lookup3.c lruhash.c mesh.c mini_event.c modstack.c module.c \
|
|
|
|
|
msgencode.c msgparse.c msgreply.c net_help.c netevent.c \
|
|
|
|
|
outbound_list.c outside_network.c packed_rrset.c parse.c \
|
|
|
|
|
parseutil.c random.c rbtree.c regional.c rrdef.c rrset.c rtt.c \
|
|
|
|
|
sbuffer.c slabhash.c str2wire.c timehist.c tube.c val_anchor.c \
|
2013-09-15 10:51:23 -04:00
|
|
|
val_kcache.c val_kentry.c val_neg.c val_nsec.c val_nsec3.c \
|
|
|
|
|
val_secalgo.c val_sigcrypt.c val_utils.c validator.c \
|
2014-05-14 23:30:03 -04:00
|
|
|
winsock_event.c wire2str.c
|
2013-09-15 10:51:23 -04:00
|
|
|
|
|
|
|
|
WARNS?= 3
|
|
|
|
|
|
2014-11-25 06:07:26 -05:00
|
|
|
LIBADD= ssl crypto pthread
|
2013-09-15 10:51:23 -04:00
|
|
|
|
2014-07-19 14:38:48 -04:00
|
|
|
# Misnamed file in upstream source
|
|
|
|
|
configlexer.l: configlexer.lex
|
2015-01-16 16:39:08 -05:00
|
|
|
${CP} ${.ALLSRC} ${.TARGET}
|
2014-07-19 14:38:48 -04:00
|
|
|
CLEANFILES+= configlexer.l
|
|
|
|
|
|
|
|
|
|
# Symbol prefix for lex and yacc
|
|
|
|
|
LFLAGS= -Pub_c_
|
|
|
|
|
YFLAGS= -pub_c_ -d
|
|
|
|
|
|
2013-09-15 10:51:23 -04:00
|
|
|
.include <bsd.lib.mk>
|