summaryrefslogtreecommitdiff
path: root/cflags.SH
diff options
context:
space:
mode:
Diffstat (limited to 'cflags.SH')
-rwxr-xr-xcflags.SH7
1 files changed, 7 insertions, 0 deletions
diff --git a/cflags.SH b/cflags.SH
index 715680eecb..2aed681697 100755
--- a/cflags.SH
+++ b/cflags.SH
@@ -24,6 +24,7 @@ echo "Extracting cflags (with variable substitutions)"
rm -f cflags
$spitshell >cflags <<!GROK!THIS!
$startsh
+src=$src
!GROK!THIS!
: In the following dollars and backticks do not need the extra backslash.
@@ -74,6 +75,12 @@ for file do
*) echo $n " $file.c $c" ;;
esac
+ : allow for out-of-source experience
+
+ if test "X$src" != X.; then
+ ccflags="$ccflags -I$src -I."
+ fi
+
: allow variables like toke_cflags to be evaluated
if echo $file | grep -v / >/dev/null