summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/boot2/Makefile
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-06-26 03:51:57 +0000
committerpeter <peter@FreeBSD.org>2003-06-26 03:51:57 +0000
commit289e79b907dd648e5c22a0678baf44a585511b35 (patch)
tree096ff24ee5a884c1dabbe49274b851335a0ef193 /sys/boot/i386/boot2/Makefile
parent5d98ddee251e0ad9fcfe740b27b439d8c124e36b (diff)
downloadFreeBSD-src-289e79b907dd648e5c22a0678baf44a585511b35.zip
FreeBSD-src-289e79b907dd648e5c22a0678baf44a585511b35.tar.gz
Build on amd64. Yes, I know this isn't particularly nice.
Diffstat (limited to 'sys/boot/i386/boot2/Makefile')
-rw-r--r--sys/boot/i386/boot2/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/boot/i386/boot2/Makefile b/sys/boot/i386/boot2/Makefile
index 95fec08b..aa8c0cd 100644
--- a/sys/boot/i386/boot2/Makefile
+++ b/sys/boot/i386/boot2/Makefile
@@ -109,3 +109,15 @@ install:
boot2 ${DESTDIR}${BINDIR}/boot2
.include <bsd.prog.mk>
+
+.if defined(REALLY_AMD64)
+boot2.o: machine
+
+beforedepend ${OBJS}: machine
+
+machine:
+ ln -sf ${.CURDIR}/../../../i386/include machine
+
+CLEANFILES+= machine
+.endif
+
OpenPOWER on IntegriCloud