From e36ac8f344dc31e3480af70bdd20643561c9fa44 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Mon, 25 May 1998 19:20:58 +0000 Subject: put support for test /boot environment back; some CLEANFILES and spaces --- sys/arch/i386/stand/boot/Makefile | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'sys/arch/i386/stand/boot/Makefile') diff --git a/sys/arch/i386/stand/boot/Makefile b/sys/arch/i386/stand/boot/Makefile index 7e87b880f37..52f89b2a3be 100644 --- a/sys/arch/i386/stand/boot/Makefile +++ b/sys/arch/i386/stand/boot/Makefile @@ -1,12 +1,23 @@ -# $OpenBSD: Makefile,v 1.18 1998/05/19 18:59:11 mickey Exp $ +# $OpenBSD: Makefile,v 1.19 1998/05/25 19:20:47 mickey Exp $ + +.include "${.CURDIR}/../Makefile.inc" PROG= boot -SRCS= srt0.S boot.c cmd.c bootarg.c conf.c -#AFLAGS+=-Wa,-R -# AFLAGS+=-Wa,-a -LD?= ld -LDFLAGS+=-nostdlib -Ttext $(LINKADDR) -z -x -Bstatic +LD=ld SIZE?= size +LDFLAGS+=-nostdlib -Bstatic +CLEANFILES+= i386 machine + +.if defined(DEBUGFLAGS) && !empty(DEBUGFLAGS:M-D_TEST) +CLEANFILES+= srt0.o +SRCS= crt0.c +.else +LDFLAGS+=-Ttext $(LINKADDR) -z -x +CLEANFILES+= crt0.o +SRCS= srt0.S +.endif + +SRCS+= boot.c cmd.c vars.c bootarg.c conf.c MAN= boot.8 MLINKS= boot.8 boot.conf.8 S =${.CURDIR}/../../../.. @@ -32,3 +43,5 @@ ${PROG}: $(OBJS) $(DPADD) CPPFLAGS+=-DBOOTMAGIC=$(BOOTMAGIC) ${DEBUGFLAGS} CFLAGS+=$(SACFLAGS) +#AFLAGS+=-Wa,-R +# AFLAGS+=-Wa,-a -- cgit v1.2.3