summaryrefslogtreecommitdiff
path: root/sys/arch/vax
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-30 08:36:25 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-30 08:36:25 +0000
commit46b4aa34eb64240c033a41ddc3035c0d1a57e83c (patch)
treed4b05f9782f89548152fcd98990c8a20fd109dd1 /sys/arch/vax
parent0309da4faac3a72eeb137355b5a86cd20a4c502b (diff)
from ragge: Create libkern as a .a instead of a .o file
Diffstat (limited to 'sys/arch/vax')
-rw-r--r--sys/arch/vax/boot/Makefile13
-rw-r--r--sys/arch/vax/stand/Makefile13
2 files changed, 20 insertions, 6 deletions
diff --git a/sys/arch/vax/boot/Makefile b/sys/arch/vax/boot/Makefile
index dd0f6293780..f6763596bc0 100644
--- a/sys/arch/vax/boot/Makefile
+++ b/sys/arch/vax/boot/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.5 1995/10/20 13:35:44 ragge Exp $
+# $NetBSD: Makefile,v 1.6 1995/12/28 15:27:21 ragge Exp $
#
INCPATH=-I. -I../../.. -I../.. -I../../../lib/libsa
+.PATH: ${.CURDIR}/../../../lib/libkern
CC= cc
AS= as
@@ -12,8 +13,8 @@ CFLAGS+=-O ${INCPATH} -DSTANDALONE -DRELOC=0x${RELOC} -D_VAX_INLINE_
DEVS= autoconf.o hp.o ra.o tmscp.o
-.include "$S/lib/libkern/Makefile.inc"
-LIBKERN= ${KERNLIB}
+LIBKERN=libkern.a
+KERNOBJ=__main.o strlen.o strcmp.o strncmp.o strncpy.o min.o strcpy.o
.include "$S/lib/libsa/Makefile.inc"
LIBSA= ${SALIB}
@@ -95,6 +96,12 @@ init.o: init.c
bootxx.o: bootxx.c
${CC} -c ${CFLAGS} $*.c
+#
+libkern.a: ${KERNOBJ}
+ @echo Creating standalone kern library
+ @ar rv libkern.a `lorder ${KERNOBJ} | tsort`
+
+#
clean::
rm -f start.o romread.o bootxx.o init.o xxboot boot racopy \
libsvax.a udiv.o urem.o consio.o ${DEVS} edlabel edlabel.o
diff --git a/sys/arch/vax/stand/Makefile b/sys/arch/vax/stand/Makefile
index dd0f6293780..f6763596bc0 100644
--- a/sys/arch/vax/stand/Makefile
+++ b/sys/arch/vax/stand/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.5 1995/10/20 13:35:44 ragge Exp $
+# $NetBSD: Makefile,v 1.6 1995/12/28 15:27:21 ragge Exp $
#
INCPATH=-I. -I../../.. -I../.. -I../../../lib/libsa
+.PATH: ${.CURDIR}/../../../lib/libkern
CC= cc
AS= as
@@ -12,8 +13,8 @@ CFLAGS+=-O ${INCPATH} -DSTANDALONE -DRELOC=0x${RELOC} -D_VAX_INLINE_
DEVS= autoconf.o hp.o ra.o tmscp.o
-.include "$S/lib/libkern/Makefile.inc"
-LIBKERN= ${KERNLIB}
+LIBKERN=libkern.a
+KERNOBJ=__main.o strlen.o strcmp.o strncmp.o strncpy.o min.o strcpy.o
.include "$S/lib/libsa/Makefile.inc"
LIBSA= ${SALIB}
@@ -95,6 +96,12 @@ init.o: init.c
bootxx.o: bootxx.c
${CC} -c ${CFLAGS} $*.c
+#
+libkern.a: ${KERNOBJ}
+ @echo Creating standalone kern library
+ @ar rv libkern.a `lorder ${KERNOBJ} | tsort`
+
+#
clean::
rm -f start.o romread.o bootxx.o init.o xxboot boot racopy \
libsvax.a udiv.o urem.o consio.o ${DEVS} edlabel edlabel.o