From f280cfbbd67a2c75b9de12e3689a701df53a9a69 Mon Sep 17 00:00:00 2001 From: gvf Date: Tue, 22 Apr 1997 16:05:38 +0000 Subject: [PATCH] Reduce dependency on libkern. --- sys/arch/mvme68k/stand/bugcrt/Makefile | 8 +++++--- sys/arch/mvme68k/stand/bugcrt/bugcrt.c | 3 ++- 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 #include #include "libbug.h" +#include "stand.h" struct mvmeprom_args bugargs = { 1 }; /* not in BSS */ -- 2.20.1