summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1998-10-21 20:07:57 +0000
committermsmith <msmith@FreeBSD.org>1998-10-21 20:07:57 +0000
commit702529216ce81262b87ad8903ed6d77eef2665da (patch)
treeddf37bf415b0d41d7aca482b55471b0621e3410b /sys/boot
parent880061ca43c5eb7110f8b122628b447b5df729e9 (diff)
downloadFreeBSD-src-702529216ce81262b87ad8903ed6d77eef2665da.zip
FreeBSD-src-702529216ce81262b87ad8903ed6d77eef2665da.tar.gz
Don't depend on being part of the kernel tree. If we are, use the kernel's
<machine> includes rather than the system's.
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/i386/libi386/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/boot/i386/libi386/Makefile b/sys/boot/i386/libi386/Makefile
index ec22662..0d47bc0 100644
--- a/sys/boot/i386/libi386/Makefile
+++ b/sys/boot/i386/libi386/Makefile
@@ -1,9 +1,9 @@
-# $Id: Makefile,v 1.7 1998/09/30 22:36:45 peter Exp $
+# $Id: Makefile,v 1.8 1998/10/14 07:08:16 peter Exp $
#
-LIB= i386
+LIB= i386
NOPIC=
NOPROFILE=
-INTERNALLIB= true
+INTERNALLIB= true
INTERNALSTATICLIB= true
SRCS= aout_freebsd.c biosdisk.c biosmem.c bootinfo.c comconsole.c \
@@ -15,12 +15,15 @@ CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../btx/lib \
# Make the disk code more talkative
#CFLAGS+= -DDISK_DEBUG
+# If it's not there, don't consider it a target
+.if exists(${.CURDIR}/../../../i386/include)
+beforedepend ${OBJS}: machine
machine:
ln -sf ${.CURDIR}/../../../i386/include machine
+.endif
+
CLEANFILES+= machine
.include <bsd.lib.mk>
-
-beforedepend ${OBJS}: machine
OpenPOWER on IntegriCloud