diff --git a/sys/compat/common/Makefile.inc b/sys/compat/common/Makefile.inc index a8020442f744..ed082446f790 100644 --- a/sys/compat/common/Makefile.inc +++ b/sys/compat/common/Makefile.inc @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.7 1996/08/08 15:15:16 mycroft Exp $ +# $NetBSD: Makefile.inc,v 1.8 1996/08/10 03:00:51 mycroft Exp $ # # NOTE: $S must correspond to the top of the 'sys' tree @@ -12,7 +12,7 @@ COMPATMAKE= \ cd ${COMPATDIR} && MAKEOBJDIR=${COMPATDST} ${MAKE} \ CC='${CC}' CFLAGS='${CFLAGS}' \ LD='${LD}' \ - COMPATCPPFLAGS='${CPPFLAGS}' + COMPATCPPFLAGS='${CPPFLAGS:S@-I.@-I${.OBJDIR}@}' ${COMPATLIB}: .NOTMAIN __always_make_compatlib @echo making sure the compat library is up to date... diff --git a/sys/lib/libkern/Makefile b/sys/lib/libkern/Makefile index 6d41d5d1c754..8ac32c78eeeb 100644 --- a/sys/lib/libkern/Makefile +++ b/sys/lib/libkern/Makefile @@ -1,11 +1,11 @@ -# $NetBSD: Makefile,v 1.29 1996/08/08 15:15:18 mycroft Exp $ +# $NetBSD: Makefile,v 1.30 1996/08/10 03:00:57 mycroft Exp $ LIB= kern NOPIC= M= ${.CURDIR}/arch/${MACHINE_ARCH} -CPPFLAGS= -I$M ${KERNCPPFLAGS} +CPPFLAGS= -I$M -I. ${KERNCPPFLAGS} .if exists ($M/Makefile.inc) .PATH: $M diff --git a/sys/lib/libkern/Makefile.inc b/sys/lib/libkern/Makefile.inc index b5deb5c2aca4..b8de040aa7e7 100644 --- a/sys/lib/libkern/Makefile.inc +++ b/sys/lib/libkern/Makefile.inc @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.17 1996/08/08 15:15:19 mycroft Exp $ +# $NetBSD: Makefile.inc,v 1.18 1996/08/10 03:00:59 mycroft Exp $ # # NOTE: $S must correspond to the top of the 'sys' tree @@ -14,7 +14,7 @@ KERNMAKE= \ AS='${AS}' AFLAGS='${AFLAGS}' \ LD='${LD}' \ MACHINE='${MACHINE}' MACHINE_ARCH='${MACHINE_ARCH}' \ - KERNCPPFLAGS='${CPPFLAGS}' + KERNCPPFLAGS='${CPPFLAGS:S@-I.@-I${.OBJDIR}@}' ${KERNLIB}: .NOTMAIN __always_make_kernlib @echo making sure the kern library is up to date...