summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k/stand
diff options
context:
space:
mode:
authorgvf <gvf@cvs.openbsd.org>1997-04-22 16:05:39 +0000
committergvf <gvf@cvs.openbsd.org>1997-04-22 16:05:39 +0000
commitb1e5e958244bdf0f3991df6204477e92cd3cd8b8 (patch)
tree6a90028369c876325c98dbd7b075c7fca5c7aa07 /sys/arch/mvme68k/stand
parent9407c137be31f6ebf031629937b153b3292e6193 (diff)
Reduce dependency on libkern.
Diffstat (limited to 'sys/arch/mvme68k/stand')
-rw-r--r--sys/arch/mvme68k/stand/bugcrt/Makefile8
-rw-r--r--sys/arch/mvme68k/stand/bugcrt/bugcrt.c3
2 files changed, 7 insertions, 4 deletions
diff --git a/sys/arch/mvme68k/stand/bugcrt/Makefile b/sys/arch/mvme68k/stand/bugcrt/Makefile
index 560f4afef4d..d9c9df7fe61 100644
--- a/sys/arch/mvme68k/stand/bugcrt/Makefile
+++ b/sys/arch/mvme68k/stand/bugcrt/Makefile
@@ -1,8 +1,10 @@
-# $OpenBSD: Makefile,v 1.6 1996/05/16 02:21:58 chuck Exp $
+# $OpenBSD: Makefile,v 1.7 1997/04/22 16:05:38 gvf Exp $
#
# DO NOT OPTMIZE bugcrt (i.e. no "-O2")
#
-CFLAGS=-I${.CURDIR}/../../include -I${.CURDIR}/../libbug -fomit-frame-pointer
+S=${.CURDIR}/../../../..
+CFLAGS=-I${.CURDIR}/../../include -I${.CURDIR}/../libbug -I${S}/lib/libsa \
+ -fomit-frame-pointer
OBJS=bugcrt.o
@@ -11,7 +13,7 @@ CLEANFILES+=a.out
all: ${OBJS}
bugcrt.o: bugcrt.c
- ${CC} ${CFLAGS} -c ${.ALLSRC}
+ ${COMPILE.c} -c $<
${LD} -x -r ${.TARGET}
mv a.out ${.TARGET}
diff --git a/sys/arch/mvme68k/stand/bugcrt/bugcrt.c b/sys/arch/mvme68k/stand/bugcrt/bugcrt.c
index 2d0e473aea0..985b85e4519 100644
--- a/sys/arch/mvme68k/stand/bugcrt/bugcrt.c
+++ b/sys/arch/mvme68k/stand/bugcrt/bugcrt.c
@@ -1,9 +1,10 @@
-/* $OpenBSD: bugcrt.c,v 1.3 1996/05/19 19:51:48 chuck Exp $ */
+/* $OpenBSD: bugcrt.c,v 1.4 1997/04/22 16:05:38 gvf Exp $ */
#include <sys/types.h>
#include <machine/prom.h>
#include "libbug.h"
+#include "stand.h"
struct mvmeprom_args bugargs = { 1 }; /* not in BSS */