aboutsummaryrefslogtreecommitdiff
path: root/kerberos5/tools
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2012-10-06 20:01:05 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2012-10-06 20:01:05 +0000
commit0815243c3937b61db8b5a10cc652900d4df4acb0 (patch)
tree70de730ba0fbf9e81dd585c1575a057d03a31be8 /kerberos5/tools
parent8bf749ef3a7a8c46811f68c985612e84501d23a0 (diff)
downloadsrc-0815243c3937b61db8b5a10cc652900d4df4acb0.tar.gz
src-0815243c3937b61db8b5a10cc652900d4df4acb0.zip
Add support for bmake. This includes:
1. Don't do upgrade_checks when using bmake. As long as we have WITH_BMAKE, there's a bootstrap complication in ths respect. Avoid it. Make the necessary changes to have upgrade_checks work wth bmake anyway. 2. Remove the use of -E. It's not needed in our build because we use ?= for the respective variables, which means that we'll take the environment value (if any) anyway. 3. Properly declare phony targets as phony as bmake is a lot smarter (and thus agressive) about build avoidance. 4. Make sure CLEANFILES is complete and use it on .NOPATH. bmake is a lot smarter about build avoidance and should not find files we generate in the source tree. We should not have files in the repository we want to generate, but this is an easier way to cross this hurdle. 5. Have behavior under bmake the same as it is under make with respect to halting when sub-commands fail. Add "set -e" to compound commands so that bmake is informed when sub-commands fail. 6. Make sure crunchgen uses the same make as the rest of the build. This is important when the make utility isn't called make (but bmake for example). 7. While here, add support for using MAKEOBJDIR to set the object tree location. It's the second alternative bmake looks for when determining the actual object directory (= .OBJDIR). Submitted by: Simon Gerraty <sjg@juniper.net> Submitted by: John Van Horne <jvanhorne@juniper.net>
Notes
Notes: svn path=/head/; revision=241298
Diffstat (limited to 'kerberos5/tools')
-rw-r--r--kerberos5/tools/asn1_compile/Makefile2
-rw-r--r--kerberos5/tools/slc/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/kerberos5/tools/asn1_compile/Makefile b/kerberos5/tools/asn1_compile/Makefile
index 94174c4e637b..194642136a0d 100644
--- a/kerberos5/tools/asn1_compile/Makefile
+++ b/kerberos5/tools/asn1_compile/Makefile
@@ -25,7 +25,7 @@ SRCS= \
CFLAGS+=-I${KRB5DIR}/lib/roken -I${KRB5DIR}/lib/asn1 -I.
-CLEANFILES= roken.h
+CLEANFILES= roken.h lex.c parse.c
roken.h:
make-roken > ${.TARGET}
diff --git a/kerberos5/tools/slc/Makefile b/kerberos5/tools/slc/Makefile
index 6e909d97761f..d1b752f46405 100644
--- a/kerberos5/tools/slc/Makefile
+++ b/kerberos5/tools/slc/Makefile
@@ -12,7 +12,7 @@ SRCS= roken.h \
CFLAGS+=-I${KRB5DIR}/lib/roken -I${KRB5DIR}/lib/sl -I${KRB5DIR}/lib/vers -I.
-CLEANFILES= roken.h
+CLEANFILES= roken.h slc-gram.c slc-lex.c
roken.h:
${MAKE_ROKEN} > ${.TARGET}