summaryrefslogtreecommitdiff
path: root/sys/arch/hp300/stand/cdboot/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/hp300/stand/cdboot/Makefile')
-rw-r--r--sys/arch/hp300/stand/cdboot/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/sys/arch/hp300/stand/cdboot/Makefile b/sys/arch/hp300/stand/cdboot/Makefile
new file mode 100644
index 00000000000..684f16f8ed6
--- /dev/null
+++ b/sys/arch/hp300/stand/cdboot/Makefile
@@ -0,0 +1,37 @@
+# $OpenBSD: Makefile,v 1.1 1999/08/16 09:43:08 downsj Exp $
+
+PROG= cdboot
+
+NOMAN=
+
+.PATH: ${.CURDIR}/../uboot
+
+CFLAGS= -O2 -msoft-float -I${.CURDIR}/../include \
+ -I${.CURDIR}/../libsa -I${.CURDIR}/../.. -I${.CURDIR}/../../.. \
+ -I${.CURDIR}/../../../..
+
+AFLAGS= -x assembler-with-cpp -traditional-cpp -I${.CURDIR}/../include \
+ -I${.CURDIR}/../libsa -I${.CURDIR}/../.. -I${.CURDIR}/../../.. \
+ -I${.CURDIR}/../../../..
+
+SRCS= srt0.S cdboot.c clock.c conf.c cons.c devopen.c
+
+LIBS= ${LIBCOMMON} ${LIBSA} ${LIBZ} ${LIBKERN}
+
+${OBJS}: ${.CURDIR}/../Makefile.inc
+
+CLEANFILES+= cdboot.lif
+
+cdboot.lif: cdboot
+ ${MKBOOT_PROG} cdboot $@
+
+cdboot: ${OBJS} ${LIBS}
+ ${LD} -N -T ${RELOC} -e begin ${OBJS} ${LIBS} -o $@
+ @size $@
+ @echo $@ total size may not exceed 30000 bytes
+
+install: cdboot.lif cdboot.raw ${MKBOOT_PROG}
+ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 cdboot.lif \
+ ${DESTDIR}/usr/mdec
+
+.include <bsd.prog.mk>