summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-08-03 08:28:14 +0000
committerbde <bde@FreeBSD.org>1998-08-03 08:28:14 +0000
commitc4e1dd04fba1896d47ede3d3cecfb37038aa24f2 (patch)
tree25e15e1f9ab217dc25c92d5c71d2c706f6f1f1b1 /Makefile
parent4d4ca48c8596d66cc9f4b94f613b1064a2fca8ae (diff)
downloadFreeBSD-src-c4e1dd04fba1896d47ede3d3cecfb37038aa24f2.zip
FreeBSD-src-c4e1dd04fba1896d47ede3d3cecfb37038aa24f2.tar.gz
Fixed building -current under 2.2.6 using `make world'. Moved some
recently added definitions from sys.mk to bsd.own.mk. Include the src-relative bsd.own.mk in src/Makefile to pick up all new definitions. Don't check that MACHINE_ARCH is defined in src/Makefile, since it is (and should have been) guaranteed to be defined.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3fc2853..1027ac7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
#
-# $Id: Makefile,v 1.205 1998/07/07 09:59:48 bde Exp $
+# $Id: Makefile,v 1.206 1998/08/02 09:24:59 wosch Exp $
#
# While porting to the another architecture include the bootstrap instead
# of the normal build.
@@ -42,6 +42,16 @@
.MAKEFLAGS:= -m ${.CURDIR}/share/mk ${.MAKEFLAGS}
.endif
+#
+# Pick up any macros that are defined in the src-relative bsd.own.mk
+# but not in the "system" bsd.own.mk. The "system" version has
+# unfortunately already been included by the "system" sys.mk, so this
+# only works for new macros. First undefine old macros that cause
+# problems.
+#
+.undef LIBDIR
+.include "${.CURDIR}/share/mk/bsd.own.mk"
+
# Put initial settings here.
SUBDIR=
@@ -366,7 +376,7 @@ reinstall:
@echo " Installing everything.."
@echo "--------------------------------------------------------------"
cd ${.CURDIR}; ${MAKE} install
-.if !defined(MACHINE_ARCH) || ${MACHINE_ARCH} == "i386"
+.if ${MACHINE_ARCH} == "i386"
@echo
@echo "--------------------------------------------------------------"
@echo " Re-scanning the shared libraries.."
@@ -601,7 +611,7 @@ includes:
#
# Declare tools if they are not required on all architectures.
#
-.if !defined(MACHINE_ARCH) || ${MACHINE_ARCH} == "i386"
+.if ${MACHINE_ARCH} == "i386"
# aout tools:
_aout_ar = usr.bin/ar
_aout_as = gnu/usr.bin/as
OpenPOWER on IntegriCloud