summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-04-05 20:30:30 +0000
committerimp <imp@FreeBSD.org>2003-04-05 20:30:30 +0000
commitb0693a4cbc1561df17854d11e8a1b4b331f8b742 (patch)
treeb6fc0351de0d24cf42e51ee60290331a14961c9c /Makefile.inc1
parentcb5cc10e3188fdee3c927d3d39c4793ebfc3f045 (diff)
downloadFreeBSD-src-b0693a4cbc1561df17854d11e8a1b4b331f8b742.zip
FreeBSD-src-b0693a4cbc1561df17854d11e8a1b4b331f8b742.tar.gz
Migrate to a new way of dealing with building from old revisions of
FreeBSD. This method attempts to centralize all the necessary hacks or work arounds in one of two places in the tree (src/Makefile.inc1 and src/tools/build). We build a small compatibility library (libbuild.a) as well as selectively installing necessary include files. We then include this directory when building host binaries. This removes all the past release compatibilty hacks from various places in the tree. We still build on tip of stable and current. I will work with those that want to support more, although I anticipate it will just work. Many thanks to ru@, obrien@ and jhb@ for providing valuable input at various stage of implementation, as well as for working together to positively effect a change for the better.
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc119
1 files changed, 10 insertions, 9 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index d9768d8..b4b3f09 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -187,19 +187,20 @@ CROSSENV= MAKEOBJDIRPREFIX=${OBJTREE} \
GROFF_TMAC_PATH=${WORLDTMP}/usr/share/tmac
# bootstrap-tool stage
-BMAKEENV= MAKEOBJDIRPREFIX=${WORLDTMP} \
- DESTDIR= \
- INSTALL="sh ${.CURDIR}/tools/install.sh"
-BMAKE= ${BMAKEENV} ${MAKE} -f Makefile.inc1 \
+BMAKEENV= DESTDIR= \
+ INSTALL="sh ${.CURDIR}/tools/install.sh" \
+ __MAKE_CONF=${.CURDIR}/tools/build/Makefile.boot \
+ OLD_MAKE_CONF=${__MAKE_CONF} \
+ WORLDTMP=${WORLDTMP}
+BMAKE= MAKEOBJDIRPREFIX=${WORLDTMP} \
+ ${BMAKEENV} ${MAKE} -f Makefile.inc1 \
BOOTSTRAPPING=${OSRELDATE} \
-DNOHTML -DNOINFO -DNOMAN -DNOPIC -DNOPROFILE -DNOSHARED \
-DNO_CPU_CFLAGS -DNO_WARNS
# build-tool stage
-TMAKEENV= MAKEOBJDIRPREFIX=${OBJTREE} \
- DESTDIR= \
- INSTALL="sh ${.CURDIR}/tools/install.sh"
-TMAKE= ${TMAKEENV} ${MAKE} -f Makefile.inc1 \
+TMAKE= MAKEOBJDIRPREFIX=${OBJTREE} \
+ ${BMAKEENV} ${MAKE} -f Makefile.inc1 \
BOOTSTRAPPING=${OSRELDATE} -DNO_CPU_CFLAGS -DNO_WARNS
# cross-tool stage
@@ -610,7 +611,7 @@ _strfile= games/fortune/strfile
.endif
bootstrap-tools:
-.for _tool in ${_strfile} usr.bin/yacc usr.bin/colldef \
+.for _tool in tools/build ${_strfile} usr.bin/yacc usr.bin/colldef \
usr.bin/makewhatis usr.bin/rpcgen usr.bin/uudecode \
usr.bin/xargs usr.bin/xinstall \
usr.sbin/config usr.sbin/kbdcontrol \
OpenPOWER on IntegriCloud