diff options
Diffstat (limited to 'sys/arch/i386/stand/boot/Makefile')
-rw-r--r-- | sys/arch/i386/stand/boot/Makefile | 25 |
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 |