From 66ba72288b2dc8afd721bf44d9cf5c518b12a4b6 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Thu, 17 Jul 1997 22:43:09 +0000 Subject: proper size/stripping/handling --- sys/arch/i386/boot/Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/i386/boot/Makefile b/sys/arch/i386/boot/Makefile index 7e10e288ade..f89420c52fa 100644 --- a/sys/arch/i386/boot/Makefile +++ b/sys/arch/i386/boot/Makefile @@ -47,14 +47,16 @@ CFLAGS+=-DDO_BAD144 -I. -I${.CURDIR} -I$S -I${.CURDIR}/../.. OBJS= start.o table.o boot.o asm.o bios.o io.o disk.o sys.o version.o \ serial.o -boot: ${OBJS} - ${LD} -Bstatic -e start -N -T 0 -o boot ${OBJS} - cp boot boot.sym - @if [ `size boot | awk 'BEGIN {getline} {print $$1+$$2}'` -gt 7680 ];\ +boot.sym: ${OBJS} + ${LD} -Bstatic -e start -N -T 0 -o boot.sym ${OBJS} + +boot: boot.sym + @if [ `size boot.sym | awk 'BEGIN {getline} {print $$1+$$2}'` -gt 7680 ];\ then \ echo BOOT BLOCKS ARE TOO BIG;\ - fail;\ + exit 1; \ fi + @cp boot.sym boot @strip boot @sh ${.CURDIR}/rmaouthdr boot boot.tmp @mv -f boot.tmp boot -- cgit v1.2.3