summaryrefslogtreecommitdiffstats
path: root/sys/boot/pc98/kgzldr/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/pc98/kgzldr/Makefile')
-rw-r--r--sys/boot/pc98/kgzldr/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/sys/boot/pc98/kgzldr/Makefile b/sys/boot/pc98/kgzldr/Makefile
new file mode 100644
index 0000000..13bd2cd
--- /dev/null
+++ b/sys/boot/pc98/kgzldr/Makefile
@@ -0,0 +1,28 @@
+# $FreeBSD$
+
+SRCS= start.s boot.c inflate.c lib.c crt.s sio.s
+OBJS= ${SRCS:N*.h:R:S/$/.o/g}
+CFLAGS= -ffreestanding
+CFLAGS+=-Os
+CFLAGS+=-DKZIP
+LDFLAGS=-nostdlib -static -Wl,-r
+.PATH: ${.CURDIR}/../../../kern
+
+.PATH: ${.CURDIR}/../../i386/kgzldr
+AFLAGS+=--defsym PC98=1
+
+CLEANFILES=kgzldr.o
+
+BOOT_COMCONSOLE_PORT?= 0x238
+AFLAGS+=--defsym SIO_PRT=${BOOT_COMCONSOLE_PORT}
+
+all: kgzldr.o
+
+kgzldr.o: ${OBJS}
+ ${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS}
+
+realinstall:
+ ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
+ kgzldr.o ${DESTDIR}${LIBDIR}
+
+.include <bsd.prog.mk>
OpenPOWER on IntegriCloud