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