summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand/boot/Makefile
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1998-05-25 19:20:58 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1998-05-25 19:20:58 +0000
commite36ac8f344dc31e3480af70bdd20643561c9fa44 (patch)
treec80fb47bac0088617073873dd8237f48494db4c7 /sys/arch/i386/stand/boot/Makefile
parentafbd2fd9b7d385cda50f7b241a5ce94cbb2c3255 (diff)
put support for test /boot environment back; some CLEANFILES and spaces
Diffstat (limited to 'sys/arch/i386/stand/boot/Makefile')
-rw-r--r--sys/arch/i386/stand/boot/Makefile25
1 files changed, 19 insertions, 6 deletions
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