summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/gptboot
diff options
context:
space:
mode:
authorrnordier <rnordier@FreeBSD.org>1998-10-14 00:24:16 +0000
committerrnordier <rnordier@FreeBSD.org>1998-10-14 00:24:16 +0000
commite4f3dfea8d6008af45c71caf6d44d7ff4f99d888 (patch)
tree6a28ab36dc797244c3eb8083b999a6a821775c9b /sys/boot/i386/gptboot
parent828b8085198335e4e1ca550a65a62f92f4f00cab (diff)
downloadFreeBSD-src-e4f3dfea8d6008af45c71caf6d44d7ff4f99d888.zip
FreeBSD-src-e4f3dfea8d6008af45c71caf6d44d7ff4f99d888.tar.gz
Include <bsd.prog.mk>. Add install target (to /boot for now).
Diffstat (limited to 'sys/boot/i386/gptboot')
-rw-r--r--sys/boot/i386/gptboot/Makefile23
1 files changed, 18 insertions, 5 deletions
diff --git a/sys/boot/i386/gptboot/Makefile b/sys/boot/i386/gptboot/Makefile
index 67b21b1..9a4f0a8 100644
--- a/sys/boot/i386/gptboot/Makefile
+++ b/sys/boot/i386/gptboot/Makefile
@@ -1,4 +1,12 @@
-# $Id: Makefile,v 1.2 1998/10/13 18:29:18 rnordier Exp $
+# $Id: Makefile,v 1.3 1998/10/13 21:35:42 rnordier Exp $
+
+PROG= boot2
+NOMAN=
+STRIP=
+BINDIR?= /boot
+BINMODE= 444
+CLEANFILES+= boot1 boot1.out boot1.o \
+ boot2.ldr boot2.bin boot2.ld boot2.out boot2.o
M4?= m4
@@ -28,7 +36,8 @@ boot1.out: boot1.o
${LD} ${LDFLAGS} -e start -Ttext ${ORG1} -o ${.TARGET} boot1.o
boot1.o: boot1.m4 boot1.s
- ${M4} boot1.m4 boot1.s | ${AS} ${AFLAGS} -o ${.TARGET}
+ (cd ${.CURDIR}; ${M4} boot1.m4 boot1.s) | \
+ ${AS} ${AFLAGS} -o ${.TARGET}
boot2: boot2.ldr boot2.bin
btxld -v -E ${ORG2} -f bin -b ${BTX}/btx/btx -l boot2.ldr \
@@ -47,6 +56,10 @@ boot2.out: boot2.o
${LD} ${LDFLAGS} -Ttext ${ORG2} -o ${.TARGET} \
${BTX}/lib/crt0.o boot2.o
-clean:
- rm -f boot1 boot1.out boot1.o boot2 boot2.ldr boot2.bin \
- boot2.ld boot2.out boot2.o
+install:
+ ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+ boot1 ${DESTDIR}${BINDIR}/boot1
+ ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+ boot2 ${DESTDIR}${BINDIR}/boot2
+
+.include <bsd.prog.mk>
OpenPOWER on IntegriCloud