summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjohns <johns@cvs.openbsd.org>1997-05-24 09:13:28 +0000
committerjohns <johns@cvs.openbsd.org>1997-05-24 09:13:28 +0000
commitbe2bac22c0f6efac4438cb7e53982dfed15151da (patch)
treee9d4f15f27ded5b9e30683f6f7c48db8ec07951a
parent23f7f5e6b42d7a1fdbca88c461f58762c1922ab5 (diff)
Committing George's compressed boot support changes..
-rw-r--r--sys/arch/sparc/stand/boot/Makefile28
1 files changed, 25 insertions, 3 deletions
diff --git a/sys/arch/sparc/stand/boot/Makefile b/sys/arch/sparc/stand/boot/Makefile
index 13034201f2f..ae94a8149c4 100644
--- a/sys/arch/sparc/stand/boot/Makefile
+++ b/sys/arch/sparc/stand/boot/Makefile
@@ -1,15 +1,37 @@
# $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 net.c netif_sun.c conf.c version.c
+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
-LIBS!= cd ${.CURDIR}/${R}; ${MAKE} libdep
-${PROG}:${OBJS} ${LIBS}
+# 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} ${LIBSA} ${LIBZ}
+
+# ${PROG} overloads the normal rule in bsd.prog.mk
+
+${PROG}: ${OBJS} ${LIBS}
${LD} -N -T ${RELOC} -e start ${OBJS} ${LIBS}
# convert to Sun magic
@size a.out