summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xMakefile.SH2
-rwxr-xr-xmakedepend.SH4
-rwxr-xr-xx2p/Makefile.SH2
3 files changed, 4 insertions, 4 deletions
diff --git a/Makefile.SH b/Makefile.SH
index 91ad66ae51..92197856a1 100755
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -1406,7 +1406,7 @@ config.h: config_h.SH config.sh
.PHONY: depend
depend: makedepend
- sh ./makedepend MAKE=$(MAKE)
+ sh ./makedepend MAKE=$(MAKE) cflags
# Cannot postpone this until $firstmakefile is ready ;-)
makedepend: makedepend.SH config.sh
diff --git a/makedepend.SH b/makedepend.SH
index 0c3cf188ef..3ea3a3e5e7 100755
--- a/makedepend.SH
+++ b/makedepend.SH
@@ -39,7 +39,7 @@ mkdir .depending
# This script should be called with
# sh ./makedepend MAKE=$(MAKE)
case "$1" in
- MAKE=*) eval $1 ;;
+ MAKE=*) eval $1; shift ;;
esac
export PATH || (echo "OOPS, this isn't sh. Desperation time. I will feed myself to sh."; sh \$0; kill \$\$)
@@ -206,7 +206,7 @@ for file in `$cat .clist`; do
-e 's|\.c\.c|.c|' $uwinfix .cout .cerr| \
$uniq | $sort | $uniq >> .deptmp
fi
- echo "$filebase\$(OBJ_EXT): cflags" >> .deptmp
+ echo "$filebase\$(OBJ_EXT): $@" >> .deptmp
done
$sed <$mf >$mf.new -e '1,/^# AUTOMATICALLY/!d'
diff --git a/x2p/Makefile.SH b/x2p/Makefile.SH
index 55d338f95a..e5a3c94d8b 100755
--- a/x2p/Makefile.SH
+++ b/x2p/Makefile.SH
@@ -170,7 +170,7 @@ lint:
lint $(lintflags) $(defs) $(c) > a2p.fuzz
depend: ../makedepend
- sh ../makedepend MAKE=$(MAKE)
+ sh ../makedepend MAKE=$(MAKE) cflags
clist:
echo $(c) | tr ' ' $(TRNL) >.clist