diff options
author | des <des@FreeBSD.org> | 2014-07-19 18:38:48 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2014-07-19 18:38:48 +0000 |
commit | d3e404ac25a60a1da01332f6d06ad1fded3f45dd (patch) | |
tree | 55ee412bff9608bc8a6b2851e6e0cfd65a32822d /lib | |
parent | afb6ef5a719a44dd2c45c7524dd7f3172f32e1f3 (diff) | |
download | FreeBSD-src-d3e404ac25a60a1da01332f6d06ad1fded3f45dd.zip FreeBSD-src-d3e404ac25a60a1da01332f6d06ad1fded3f45dd.tar.gz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libunbound/Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/libunbound/Makefile b/lib/libunbound/Makefile index 150dd0c..c6bbede 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> |