xref: /freebsd/lib/libunbound/Makefile (revision d3d381b2b194b4d24853e92eecef55f262688d1a)
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}
16
17SRCS=	alloc.c as112.c authzone.c autotrust.c cachedb.c config_file.c \
18	configlexer.l configparser.y context.c dname.c dns.c dns64.c \
19	dnstree.c fptr_wlist.c infra.c iter_delegpt.c iter_donotq.c \
20	iter_fwd.c iter_hints.c iter_priv.c iter_resptype.c iter_scrub.c \
21	iter_utils.c iterator.c keyraw.c libunbound.c libworker.c \
22	listen_dnsport.c localzone.c locks.c log.c lookup3.c lruhash.c \
23	mesh.c mini_event.c modstack.c module.c msgencode.c msgparse.c \
24	msgreply.c net_help.c netevent.c outbound_list.c outside_network.c \
25	packed_rrset.c parse.c parseutil.c random.c rbtree.c regional.c \
26	respip.c rrdef.c rrset.c rtt.c sbuffer.c slabhash.c str2wire.c \
27	timehist.c tube.c ub_event_pluggable.c val_anchor.c val_kcache.c \
28	val_kentry.c val_neg.c val_nsec.c val_nsec3.c val_secalgo.c \
29	val_sigcrypt.c val_utils.c validator.c view.c winsock_event.c \
30	wire2str.c
31
32WARNS?=	3
33NO_WTHREAD_SAFETY= true
34
35LIBADD=	ssl crypto pthread
36
37# Misnamed file in upstream source
38configlexer.l: configlexer.lex
39	${CP} ${.ALLSRC} ${.TARGET}
40CLEANFILES+= configlexer.l
41
42# Symbol prefix for lex and yacc
43LFLAGS= -Pub_c_
44YFLAGS= -pub_c_ -d
45
46.include <bsd.lib.mk>
47