aboutsummaryrefslogtreecommitdiff
path: root/lib/libunbound
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2014-07-19 18:38:48 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2014-07-19 18:38:48 +0000
commite8263e185cd1eb62e0d8c70f0fac9094724f5960 (patch)
tree55ee412bff9608bc8a6b2851e6e0cfd65a32822d /lib/libunbound
parent34a856a200ac6feb396f9524eb3590eb843c498b (diff)
downloadsrc-e8263e185cd1eb62e0d8c70f0fac9094724f5960.tar.gz
src-e8263e185cd1eb62e0d8c70f0fac9094724f5960.zip
Clean up the libunbound build to avoid accidentally regenerating the
configuration lexer and parser during buildworld. Instead of being included in the source as it is in the upstream distribution, the code is now always generated (in ${.OBJDIR}) at build time. PR: 190739 MFC after: 1 week
Notes
Notes: svn path=/head/; revision=268883
Diffstat (limited to 'lib/libunbound')
-rw-r--r--lib/libunbound/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/libunbound/Makefile b/lib/libunbound/Makefile
index 150dd0c42b75..c6bbedead598 100644
--- a/lib/libunbound/Makefile
+++ b/lib/libunbound/Makefile
@@ -10,9 +10,9 @@ UNBOUNDDIR= ${.CURDIR}/../../contrib/unbound
LIB= unbound
PRIVATELIB=
-CFLAGS= -I${UNBOUNDDIR} -I${LDNSDIR}
+CFLAGS= -I${UNBOUNDDIR} -I${LDNSDIR} -I${.OBJDIR}
-SRCS= alloc.c autotrust.c config_file.c configlexer.c configparser.c \
+SRCS= alloc.c autotrust.c config_file.c configlexer.l configparser.y \
context.c dname.c dns.c dnstree.c fptr_wlist.c infra.c \
iter_delegpt.c iter_donotq.c iter_fwd.c iter_hints.c iter_priv.c \
iter_resptype.c iter_scrub.c iter_utils.c iterator.c keyraw.c \
@@ -31,4 +31,13 @@ WARNS?= 3
DPADD+= ${LIBSSL} ${LIBCRYPTO} ${LIBPTHREAD}
LDADD+= -lssl -lcrypto -lpthread
+# Misnamed file in upstream source
+configlexer.l: configlexer.lex
+ cp -p ${.ALLSRC} ${.TARGET}
+CLEANFILES+= configlexer.l
+
+# Symbol prefix for lex and yacc
+LFLAGS= -Pub_c_
+YFLAGS= -pub_c_ -d
+
.include <bsd.lib.mk>