2013-09-15 14:51:23 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2016-02-04 21:16:35 +00:00
|
|
|
PACKAGE=lib${LIB}
|
2013-09-15 14:51:23 +00:00
|
|
|
# Vendor sources and generated files
|
2017-01-20 04:31:19 +00:00
|
|
|
LDNSDIR= ${SRCTOP}/contrib/ldns
|
|
|
|
UNBOUNDDIR= ${SRCTOP}/contrib/unbound
|
2013-09-15 14:51:23 +00:00
|
|
|
|
|
|
|
# Hold my beer and watch this
|
2018-05-12 14:15:39 +00:00
|
|
|
.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
|
2013-09-15 14:51:23 +00:00
|
|
|
|
|
|
|
LIB= unbound
|
|
|
|
PRIVATELIB=
|
2015-03-05 16:19:45 +00:00
|
|
|
PACKAGE= unbound
|
2013-09-15 14:51:23 +00:00
|
|
|
|
2016-03-11 20:04:32 +00:00
|
|
|
CFLAGS+= -I${UNBOUNDDIR} -I${LDNSDIR} -I${.OBJDIR}
|
2020-01-13 06:55:31 +00:00
|
|
|
CFLAGS+= -I${SRCTOP}/usr.sbin/unbound
|
2013-09-15 14:51:23 +00:00
|
|
|
|
2018-05-12 14:36:58 +00:00
|
|
|
SRCS= alloc.c as112.c authzone.c autotrust.c cachedb.c config_file.c \
|
|
|
|
configlexer.l configparser.y context.c dname.c dns.c dns64.c \
|
2018-10-10 08:19:11 +00:00
|
|
|
dnstree.c edns.c fptr_wlist.c infra.c iter_delegpt.c iter_donotq.c \
|
2018-05-12 14:36:58 +00:00
|
|
|
iter_fwd.c iter_hints.c iter_priv.c 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 \
|
2018-09-10 16:56:44 +00:00
|
|
|
packed_rrset.c parse.c parseutil.c random.c rbtree.c redis.c \
|
2020-05-21 21:00:46 +00:00
|
|
|
regional.c respip.c rpz.c rrdef.c rrset.c rtt.c sbuffer.c slabhash.c \
|
2018-10-10 08:19:11 +00:00
|
|
|
str2wire.c tcp_conn_limit.c timehist.c tube.c ub_event_pluggable.c \
|
|
|
|
val_anchor.c 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 \
|
|
|
|
view.c winsock_event.c wire2str.c
|
2013-09-15 14:51:23 +00:00
|
|
|
|
2020-05-21 21:00:46 +00:00
|
|
|
WARNS?= 2
|
2018-05-12 14:04:30 +00:00
|
|
|
NO_WTHREAD_SAFETY= true
|
2013-09-15 14:51:23 +00:00
|
|
|
|
2014-11-25 11:07:26 +00:00
|
|
|
LIBADD= ssl crypto pthread
|
2013-09-15 14:51:23 +00:00
|
|
|
|
2014-07-19 18:38:48 +00:00
|
|
|
# Misnamed file in upstream source
|
|
|
|
configlexer.l: configlexer.lex
|
2015-01-16 21:39:08 +00:00
|
|
|
${CP} ${.ALLSRC} ${.TARGET}
|
2014-07-19 18:38:48 +00:00
|
|
|
CLEANFILES+= configlexer.l
|
|
|
|
|
|
|
|
# Symbol prefix for lex and yacc
|
|
|
|
LFLAGS= -Pub_c_
|
|
|
|
YFLAGS= -pub_c_ -d
|
|
|
|
|
2013-09-15 14:51:23 +00:00
|
|
|
.include <bsd.lib.mk>
|