summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/stand/boot
diff options
context:
space:
mode:
authorgrr <grr@cvs.openbsd.org>1997-05-25 23:03:12 +0000
committergrr <grr@cvs.openbsd.org>1997-05-25 23:03:12 +0000
commitbc3b97e1ffb9fd91eab5137f97d03b269233e4db (patch)
tree46020d4264f8612aa098d50b488d4a5de1017571 /sys/arch/sparc/stand/boot
parenteac40dd0cdf895113cfba6c9982a05af0a947a56 (diff)
commit the compressed bootblock Makefile for later investigation
Diffstat (limited to 'sys/arch/sparc/stand/boot')
-rw-r--r--sys/arch/sparc/stand/boot/Makefile.compressed42
1 files changed, 42 insertions, 0 deletions
diff --git a/sys/arch/sparc/stand/boot/Makefile.compressed b/sys/arch/sparc/stand/boot/Makefile.compressed
new file mode 100644
index 00000000000..cfbb4b9eba1
--- /dev/null
+++ b/sys/arch/sparc/stand/boot/Makefile.compressed
@@ -0,0 +1,42 @@
+# $NetBSD: Makefile,v 1.2 1995/09/30 21:43:38 pk Exp $
+
+S= ${.CURDIR}/../../../..
+R= ..
+.PATH: ${.CURDIR}/${R}
+PROG= boot
+SRCS= srt0.S boot.c promdev.c dvma.c bootnet.c netif_sun.c conf.c version.c
+INSTALL_STRIP=
+NOMAN= 1
+BINDIR= /usr/mdec
+
+# include "library" defines and make rules
+KERN_AS= library
+KERNDST= ${.CURDIR}/${__objdir}
+.include "${S}/lib/libkern/Makefile.inc"
+LIBKERN= ${KERNLIB}
+
+Z_AS= library
+ZDST= ${.CURDIR}/${__objdir}
+.include "${S}/lib/libz/Makefile.inc"
+LIBZ= ${ZLIB}
+
+SA_AS= library
+SADST= ${.CURDIR}/${__objdir}
+SAREL=
+SA_ZLIB= yes
+.include "${S}/lib/libsa/Makefile.inc"
+LIBSA= ${SALIB}
+
+LIBS= ${LIBSA} ${LIBKERN} ${LIBZ}
+
+# ${PROG} overloads the normal rule in bsd.prog.mk
+
+${PROG}: ${OBJS} ${LIBS}
+ ${LD} -N -T ${RELOC} -e start ${OBJS} \
+ -nostdlib -L ${.CURDIR}/${__objdir} -lsa -lkern -lz
+ # convert to Sun magic
+ @size a.out
+ (echo -n 01 | tr 01 '\01\03'; tail +3c a.out) > ${.TARGET}
+ @rm a.out
+
+.include <bsd.prog.mk>