From a3c5a71f9f6bec70637c692ab8e63ec8b624bd4b Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 16 May 1994 06:25:21 +0000 Subject: [PATCH] attempts to reduce our reliance on /usr/include --- sys/lib/libkern/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/sys/lib/libkern/Makefile b/sys/lib/libkern/Makefile index d0440783393c..3cc187eee2a4 100644 --- a/sys/lib/libkern/Makefile +++ b/sys/lib/libkern/Makefile @@ -1,9 +1,17 @@ -# $Id: Makefile,v 1.8 1994/05/14 06:00:34 cgd Exp $ +# $Id: Makefile,v 1.9 1994/05/16 06:25:21 deraadt Exp $ LIB= kern NOPIC= OBJMACHINE= -CFLAGS+= -DKERNEL +CFLAGS+= -I${.CURDIR} -Imachine/.. -I. -I${.CURDIR}/../.. + +machine-links: + -rm -f machine && + ln -s ${.CURDIR}/../../arch/${MACHINE}/include machine + -rm -f ${MACHINE_ARCH} && \ + ln -s ${.CURDIR}/../../arch/${MACHINE_ARCH}/include ${MACHINE_ARCH} + +all: machine-links .if exists (${.CURDIR}/${MACHINE_ARCH}/Makefile.inc) .PATH: ${.CURDIR}/${MACHINE_ARCH}