summaryrefslogtreecommitdiffstats
path: root/sys/Makefile
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-12-30 12:06:08 +0000
committerbde <bde@FreeBSD.org>1998-12-30 12:06:08 +0000
commitc7d467927626147e8d643da13bfc62848f70f5de (patch)
treec58942e6d3159932215c56d7760b9563cad5eead /sys/Makefile
parent64edc80b7a347c25a3d3bdaefc15aedb895fc913 (diff)
downloadFreeBSD-src-c7d467927626147e8d643da13bfc62848f70f5de.zip
FreeBSD-src-c7d467927626147e8d643da13bfc62848f70f5de.tar.gz
Backed out previous commit. It depends on a.out utilities and libraries
somehow being available even on pure elf systems.
Diffstat (limited to 'sys/Makefile')
-rw-r--r--sys/Makefile18
1 files changed, 11 insertions, 7 deletions
diff --git a/sys/Makefile b/sys/Makefile
index e13a51a..bca5ede 100644
--- a/sys/Makefile
+++ b/sys/Makefile
@@ -1,15 +1,19 @@
-# $Id: Makefile,v 1.14 1998/11/03 06:50:58 peter Exp $
+# $Id: Makefile,v 1.15 1998/12/30 11:17:09 bde Exp $
-SUBDIR= modules
-
-.if ${MACHINE_ARCH} == "alpha" || ${OBJFORMAT} == "elf"
-SUBDIR+=boot
+# This is the old aout only boot loader.
+.if exists(${MACHINE}/boot) && ${OBJFORMAT} == "aout"
+SUBDIR= ${MACHINE}/boot
+.elif exists(boot) && ${MACHINE} == "i386" && ${OBJFORMAT} == "elf"
+SUBDIR= boot
.endif
-.if exists(${.CURDIR}/${MACHINE}/boot)
-SUBDIR+=${MACHINE}/boot
+.if exists(boot) && ${MACHINE_ARCH} == "alpha"
+SUBDIR= boot
.endif
+# KLD modules build for both a.out and ELF
+SUBDIR+=modules
+
HTAGSFLAGS+= -at `awk -F= '/^RELEASE *=/{release=$2}; END {print "FreeBSD", release, "kernel"}' < conf/newvers.sh`
.include <bsd.subdir.mk>
OpenPOWER on IntegriCloud