From 5e3acbf57ecc36c62f6b23d1501f02c9717a65d5 Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 14 Oct 1998 07:08:16 +0000 Subject: [PATCH] Try and get the sys/* and machine/* includes via relative paths. This saves having to do a 'make includes' after touching any header file for the boot code. --- sys/boot/i386/libi386/Makefile | 13 +++++++++++-- sys/boot/i386/loader/Makefile | 12 +++++++++--- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/sys/boot/i386/libi386/Makefile b/sys/boot/i386/libi386/Makefile index 8eaed19091e..ec22662921d 100644 --- a/sys/boot/i386/libi386/Makefile +++ b/sys/boot/i386/libi386/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.6 1998/09/30 19:48:09 peter Exp $ +# $Id: Makefile,v 1.7 1998/09/30 22:36:45 peter Exp $ # LIB= i386 NOPIC= @@ -9,9 +9,18 @@ INTERNALSTATICLIB= true SRCS= aout_freebsd.c biosdisk.c biosmem.c bootinfo.c comconsole.c \ devicename.c elf_freebsd.c gatea20.c i386_copy.c i386_module.c time.c vidconsole.c -CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../btx/lib +CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../btx/lib \ + -I${.CURDIR}/../../.. -I. # Make the disk code more talkative #CFLAGS+= -DDISK_DEBUG + +machine: + ln -sf ${.CURDIR}/../../../i386/include machine + +CLEANFILES+= machine + .include + +beforedepend ${OBJS}: machine diff --git a/sys/boot/i386/loader/Makefile b/sys/boot/i386/loader/Makefile index 9497c952eed..02fd2d005a1 100644 --- a/sys/boot/i386/loader/Makefile +++ b/sys/boot/i386/loader/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.10 1998/10/07 02:39:32 msmith Exp $ +# $Id: Makefile,v 1.11 1998/10/12 01:03:00 rnordier Exp $ BASE= loader PROG= ${BASE} @@ -17,7 +17,8 @@ SRCS= main.c conf.c # Always add MI sources .PATH: ${.CURDIR}/../../common .include <${.CURDIR}/../../common/Makefile.inc> -CFLAGS+= -I${.CURDIR}/../../common -I. +CFLAGS+= -I${.CURDIR}/../../common +CFLAGS+= -I${.CURDIR}/../../.. -I. CLEANFILES+= vers.c vers.o ${BASE}.list setdef0.o setdef1.o setdefs.h \ gensetdefs.o gensetdefs ${BASE}.bin @@ -68,6 +69,11 @@ setdef0.o: setdefs.h setdef1.o: setdefs.h +machine: + ln -sf ${.CURDIR}/../../../i386/include machine + +CLEANFILES+= machine + .include # Linker set gymnastics @@ -81,4 +87,4 @@ gensetdefs: gensetdefs.o gensetdefs.o: gensetdefs.c ${CC} -c $< - +beforedepend ${OBJS}: machine -- 2.45.2