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