diff options
author | peter <peter@FreeBSD.org> | 2002-05-01 06:50:59 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2002-05-01 06:50:59 +0000 |
commit | dfb63f63b0c7c6dbae16ef93e4b9af64c9d3e61a (patch) | |
tree | 6f0346a1d86feccb047ae0a42655fe84e0014273 /sys/dev | |
parent | c6d2a0b3425a431d83b0c72853864e1c7ee566c4 (diff) | |
download | FreeBSD-src-dfb63f63b0c7c6dbae16ef93e4b9af64c9d3e61a.zip FreeBSD-src-dfb63f63b0c7c6dbae16ef93e4b9af64c9d3e61a.tar.gz |
Add "CFLAGS+= -I${MAKESRCPATH}" when running under the kernel build,
otherwise #include "aicasm.h" etc do not work with gcc-3 and later.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/aic7xxx/aicasm/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
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/} |