summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/boot/i386/boot0/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/boot/i386/boot0/Makefile b/sys/boot/i386/boot0/Makefile
index a87526f..84758f2 100644
--- a/sys/boot/i386/boot0/Makefile
+++ b/sys/boot/i386/boot0/Makefile
@@ -35,10 +35,12 @@ AFLAGS+=--defsym FLAGS=${BOOT_BOOT0_FLAGS} \
LDFLAGS=-N -e start -Ttext ${BOOT_BOOT0_ORG} -Wl,-S,--oformat,binary
-.include <bsd.prog.mk>
+CLEANFILES+= boot0.s
+boot0.s: boot0_512.s
+ cpp -USIO < ${.ALLSRC} > ${.TARGET}
-boot0.s: boot0_512.s
- cpp -USIO < ${.CURDIR}/boot0_512.s > boot0.s
+CLEANFILES+= boot0sio.s
+boot0sio.s: boot0_512.s
+ cpp -DSIO < ${.ALLSRC} > ${.TARGET}
-boot0sio.s: ${.CURDIR}/../boot0/boot0_512.s
- cpp -DSIO < ${.CURDIR}/../boot0/boot0_512.s > boot0sio.s
+.include <bsd.prog.mk>
OpenPOWER on IntegriCloud