From dfb63f63b0c7c6dbae16ef93e4b9af64c9d3e61a Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 1 May 2002 06:50:59 +0000 Subject: Add "CFLAGS+= -I${MAKESRCPATH}" when running under the kernel build, otherwise #include "aicasm.h" etc do not work with gcc-3 and later. --- sys/dev/aic7xxx/aicasm/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/dev') diff --git a/sys/dev/aic7xxx/aicasm/Makefile b/sys/dev/aic7xxx/aicasm/Makefile index 2099dd5..316477b 100644 --- a/sys/dev/aic7xxx/aicasm/Makefile +++ b/sys/dev/aic7xxx/aicasm/Makefile @@ -23,6 +23,9 @@ DEPENDFILE= .endif CFLAGS+= -I/usr/include -I. +.ifdef MAKESRCPATH +CFLAGS+= -I${MAKESRCPATH} +.endif NOMAN= noman YFLAGS= -b ${.TARGET:R} ${.TARGET:M*macro*:S/$(.TARGET)/-p mm/} -d LFLAGS+= ${.TARGET:M*macro*:S/$(.TARGET)/-Pmm/} -- cgit v1.1