summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-05-01 06:50:59 +0000
committerpeter <peter@FreeBSD.org>2002-05-01 06:50:59 +0000
commitdfb63f63b0c7c6dbae16ef93e4b9af64c9d3e61a (patch)
tree6f0346a1d86feccb047ae0a42655fe84e0014273 /sys
parentc6d2a0b3425a431d83b0c72853864e1c7ee566c4 (diff)
downloadFreeBSD-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')
-rw-r--r--sys/dev/aic7xxx/aicasm/Makefile3
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/}
OpenPOWER on IntegriCloud