aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>2000-06-15 10:00:20 +0000
committerBrian Somers <brian@FreeBSD.org>2000-06-15 10:00:20 +0000
commit59bb1d9c7bb2c6349fcff599c48d06b12b632ac4 (patch)
tree0dd7a040aa0c14986284ea88b42242d6b9baf1c2 /Makefile.inc1
parent6f6b2cd019d1fbaa22403f47b967e93a7fec25c7 (diff)
downloadsrc-59bb1d9c7bb2c6349fcff599c48d06b12b632ac4.tar.gz
src-59bb1d9c7bb2c6349fcff599c48d06b12b632ac4.zip
Add -DNO_KERNELDEPEND and -DNO_KERNELCONFIG
Not reviewed by: sheldonh
Notes
Notes: svn path=/head/; revision=61703
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc112
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 9c9090c1bbc1..5fcf97f4d9f6 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -14,6 +14,8 @@
# -DNOINFO do not make or install info files
# -DNOLIBC_R do not build libc_r.
# -DNO_FORTRAN do not build g77 and related libraries.
+# -DNO_KERNELCONFIG do not run config in ${MAKE} buildkernel
+# -DNO_KERNELDEPEND do not run ${MAKE} depend in ${MAKE} buildkernel
# LOCAL_DIRS="list of dirs" to add additional dirs to the SUBDIR list
#
@@ -379,14 +381,20 @@ buildkernel:
.for _kernel in ${BUILDKERNELS}
@echo "===> ${_kernel}"
mkdir -p ${KRNLOBJDIR}
+.if !defined(NO_KERNELCONFIG)
cd ${KRNLCONFDIR}; \
PATH=${TMPPATH} \
config ${CONFIGARGS} -d ${KRNLOBJDIR}/${_kernel} ${_kernel}
+.endif
cd ${KRNLOBJDIR}/${_kernel}; \
MAKESRCPATH=${KRNLSRCDIR}/dev/aic7xxx \
- ${MAKE} -f ${KRNLSRCDIR}/dev/aic7xxx/Makefile; \
+ ${MAKE} -f ${KRNLSRCDIR}/dev/aic7xxx/Makefile
+.if !defined(NO_KERNELDEPEND)
+ cd ${KRNLOBJDIR}/${_kernel}; \
${WMAKEENV} MACHINE=${MACHINE} KERNEL=${_kernel} \
- ${MAKE} depend; \
+ ${MAKE} depend
+.endif
+ cd ${KRNLOBJDIR}/${_kernel}; \
${WMAKEENV} MACHINE=${MACHINE} KERNEL=${_kernel} ${MAKE} all
.endfor