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