summaryrefslogtreecommitdiff
path: root/makedepend.SH
diff options
context:
space:
mode:
authorLarry Wall <lwall@jpl-devvax.jpl.nasa.gov>1989-11-10 16:20:25 +0000
committerLarry Wall <lwall@jpl-devvax.jpl.nasa.gov>1989-11-10 16:20:25 +0000
commitbf38876a182e0df9dd73362f56cf0ab8b43aa789 (patch)
tree0c8c37dbaeeadb7549ca7b6d3f2b19d92896f9bb /makedepend.SH
parent91407755d9b894ac1239c4fafe586e52138db38d (diff)
downloadperl-bf38876a182e0df9dd73362f56cf0ab8b43aa789.tar.gz
perl 3.0 patch #3 Patch #2 continued
Diffstat (limited to 'makedepend.SH')
-rw-r--r--makedepend.SH22
1 files changed, 6 insertions, 16 deletions
diff --git a/makedepend.SH b/makedepend.SH
index 5cb95c5004..000bf71ec2 100644
--- a/makedepend.SH
+++ b/makedepend.SH
@@ -15,9 +15,12 @@ esac
echo "Extracting makedepend (with variable substitutions)"
$spitshell >makedepend <<!GROK!THIS!
$startsh
-# $Header: makedepend.SH,v 3.0 89/10/18 15:20:19 lwall Locked $
+# $Header: makedepend.SH,v 3.0.1.1 89/11/11 04:35:32 lwall Locked $
#
# $Log: makedepend.SH,v $
+# Revision 3.0.1.1 89/11/11 04:35:32 lwall
+# patch2: makedepend now uses cppflags determined by Configure
+#
# Revision 3.0 89/10/18 15:20:19 lwall
# 3.0 baseline
#
@@ -25,7 +28,7 @@ $startsh
export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh \$0; kill \$\$)
cat='$cat'
-ccflags='$ccflags $sockethdr'
+cppflags='$cppflags'
cp='$cp'
cpp='$cppstdin'
echo='$echo'
@@ -42,19 +45,6 @@ uniq='$uniq'
$spitshell >>makedepend <<'!NO!SUBS!'
-: the following weeds options from ccflags that are of no interest to cpp
-case "$ccflags" in
-'');;
-*) set X $ccflags
- ccflags=''
- for flag do
- case $flag in
- -D*|-I*) ccflags="$ccflags $flag";;
- esac
- done
- ;;
-esac
-
$cat /dev/null >.deptmp
$rm -f *.c.c c/*.c.c
if test -f Makefile; then
@@ -96,7 +86,7 @@ for file in `$cat .clist`; do
-e 's|\\$||' \
-e p \
-e '}'
- $cpp -I/usr/local/include -I. $ccflags $file.c | \
+ $cpp -I/usr/local/include -I. $cppflags $file.c | \
$sed \
-e '/^# *[0-9]/!d' \
-e 's/^.*"\(.*\)".*$/'$filebase'.o: \1/' \