提交 7d103766 编写于 作者: R Richard Levitte

Fix the makedepend constructor in unix-Makefile.tmpl

Reviewed-by: NRich Salz <rsalz@openssl.org>
上级 d1776fde
...@@ -126,6 +126,7 @@ NM= $(CROSS_COMPILE){- $target{nm} || "nm" -} ...@@ -126,6 +126,7 @@ NM= $(CROSS_COMPILE){- $target{nm} || "nm" -}
RM= rm -f RM= rm -f
TAR= {- $target{tar} || "tar" -} TAR= {- $target{tar} || "tar" -}
TARFLAGS= {- $target{tarflags} -} TARFLAGS= {- $target{tarflags} -}
MAKEDEPEND=$(CROSS_COMPILE){- $config{makedepprog} -}
BASENAME= openssl BASENAME= openssl
NAME= $(BASENAME)-$(VERSION) NAME= $(BASENAME)-$(VERSION)
...@@ -180,7 +181,7 @@ clean: libclean ...@@ -180,7 +181,7 @@ clean: libclean
-rm -f `find $(BLDDIR) -type l` -rm -f `find $(BLDDIR) -type l`
rm -f $(TARFILE) rm -f $(TARFILE)
DCLEAN_CMD=sed -e '/^DO NOT DELETE.*/,$$d' DCLEAN_CMD=sed -e '/^. DO NOT DELETE.*/,$$d'
dclean: dclean:
$(DCLEAN_CMD) < Makefile >Makefile.new $(DCLEAN_CMD) < Makefile >Makefile.new
mv -f Makefile.new Makefile mv -f Makefile.new Makefile
...@@ -743,10 +744,11 @@ Makefile: {- $config{build_file_template} -} $(SRCDIR)/Configure $(SRCDIR)/confi ...@@ -743,10 +744,11 @@ Makefile: {- $config{build_file_template} -} $(SRCDIR)/Configure $(SRCDIR)/confi
return <<"EOF"; return <<"EOF";
$dep : $deps $dep : $deps
rm -f \$\@.tmp; touch \$\@.tmp rm -f \$\@.tmp; touch \$\@.tmp
\$(MAKEDEPEND) -f\$\@.tmp -o"|$obj"\ \$(MAKEDEPEND) -f\$\@.tmp -o"|$obj" \\
-- -DOPENSSL_DOING_MAKEDEPEND \$(DEPFLAGS)$incs \ -- -DOPENSSL_DOING_MAKEDEPEND \$(DEPFLAGS)$incs \\
-- $srcs -- $srcs \\
sed -e 's/^.*|//' -e 's/ \\/\\(\\\\.\\|[^ ]\\)*//g' -e '/: *\$/d' -e '/^\\(#.*\\| *\\)\$/d' \$\@.tmp > \$\@ 2>/dev/null
sed -e 's/^.*|//' -e 's/ \\/\\(\\\\.\\|[^ ]\\)*//g' -e '/: *\$\$/d' -e '/^\\(#.*\\| *\\)\$\$/d' \$\@.tmp > \$\@
rm \$\@.tmp rm \$\@.tmp
EOF EOF
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册