summaryrefslogtreecommitdiffstats
path: root/stand/pc98/pc98boot/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'stand/pc98/pc98boot/Makefile')
-rw-r--r--stand/pc98/pc98boot/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/stand/pc98/pc98boot/Makefile b/stand/pc98/pc98boot/Makefile
new file mode 100644
index 0000000..f33b15f
--- /dev/null
+++ b/stand/pc98/pc98boot/Makefile
@@ -0,0 +1,25 @@
+# $FreeBSD$
+
+FILES= ${BOOT}
+CLEANFILES= ${BOOT} ${BOOT}.part
+
+BOOT= pc98boot
+
+.if exists(${.OBJDIR}/../boot0)
+BOOT0= ${.OBJDIR}/../boot0/boot0
+.else
+BOOT0= ${.CURDIR}/../boot0/boot0
+.endif
+.if exists(${.OBJDIR}/../boot0.5)
+BOOT05= ${.OBJDIR}/../boot0.5/boot0.5
+.else
+BOOT05= ${.CURDIR}/../boot0.5/boot0.5
+.endif
+
+${BOOT}: ${BOOT0} ${BOOT05} ${BOOT}.part
+ cat ${BOOT0} ${BOOT}.part ${BOOT05} > ${.TARGET}
+
+${BOOT}.part:
+ ${DD} if=/dev/zero of=${.TARGET} bs=512 count=1
+
+.include <bsd.prog.mk>
OpenPOWER on IntegriCloud