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