diff options
author | eivind <eivind@FreeBSD.org> | 1998-02-15 21:38:19 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 1998-02-15 21:38:19 +0000 |
commit | b5aaf93a530e1426fc8bdc33ece5317b2b551704 (patch) | |
tree | e9d99752a1e558c53d98142a7941e60189b921d5 /sys/i386/boot/biosboot/Makefile | |
parent | d38151f2d027babf495107be4bd6755e547fc85d (diff) | |
download | FreeBSD-src-b5aaf93a530e1426fc8bdc33ece5317b2b551704.zip FreeBSD-src-b5aaf93a530e1426fc8bdc33ece5317b2b551704.tar.gz |
Make bootblock building independent of /usr/include if relative
includes are available.
Diffstat (limited to 'sys/i386/boot/biosboot/Makefile')
-rw-r--r-- | sys/i386/boot/biosboot/Makefile | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/sys/i386/boot/biosboot/Makefile b/sys/i386/boot/biosboot/Makefile index 89395ed..4bd7705 100644 --- a/sys/i386/boot/biosboot/Makefile +++ b/sys/i386/boot/biosboot/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.60 1997/08/31 06:11:25 phk Exp $ +# $Id: Makefile,v 1.61 1998/01/27 16:56:43 msmith Exp $ # PROG= boot @@ -14,7 +14,10 @@ CFLAGS= -O2 -malign-functions=0 -malign-jumps=0 -malign-loops=0 \ CFLAGS+= -DBOOTSEG=${BOOTSEG} -DBOOTSTACK=${BOOTSTACK} CFLAGS+= -DDO_BAD144 CFLAGS+= -DVESA_SUPPORT -CFLAGS+= -I${.CURDIR}/../../.. +.if exists(${.CURDIR}/../../../../include) +CFLAGS+= -nostdinc -I${.CURDIR}/../../../../include +.endif +CFLAGS+= -I${.CURDIR}/../../.. -I${.OBJDIR} CFLAGS+= ${CWARNFLAGS} # By default, if a serial port is going to be used as console, use COM1 @@ -43,7 +46,7 @@ CFLAGS+= -DCONSPEED=${BOOT_COMCONSOLE_SPEED} # SCSI and have BIOS drive number (sd_unit_number + BOOT_HD_BIAS). E.g., # BOOT_HD_BIAS=1 makes sd(0,a) correspond to 1:sd(0,a) instead of 0:sd(0,a). -CLEANFILES+= boot.nohdr boot.strip boot1 boot2 sizetest +CLEANFILES+= boot.nohdr boot.strip boot1 boot2 machine sizetest LDFLAGS+= -N -T 0 -nostdlib #LINKS= ${BINDIR}/sdboot ${BINDIR}/wdboot\ # ${BINDIR}/sdboot ${BINDIR}/fdboot\ @@ -85,7 +88,12 @@ boot2: boot.nohdr exit 2 ; \ fi -all: boot1 boot2 +pre-compile: +.if !exists(${.OBJDIR}/machine) + ln -s ${.CURDIR}/../../include ${.OBJDIR}/machine +.endif + +all: pre-compile boot1 boot2 install: ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}\ |