diff options
Diffstat (limited to 'src/lib/libcrypto/util/domd')
-rw-r--r-- | src/lib/libcrypto/util/domd | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/lib/libcrypto/util/domd b/src/lib/libcrypto/util/domd index 9f75131f22..aa99cb0523 100644 --- a/src/lib/libcrypto/util/domd +++ b/src/lib/libcrypto/util/domd | |||
@@ -4,8 +4,26 @@ | |||
4 | 4 | ||
5 | TOP=$1 | 5 | TOP=$1 |
6 | shift | 6 | shift |
7 | if [ "$1" = "-MD" ]; then | ||
8 | shift | ||
9 | MAKEDEPEND=$1 | ||
10 | shift | ||
11 | fi | ||
12 | if [ "$MAKEDEPEND" = "" ]; then MAKEDEPEND=makedepend; fi | ||
7 | 13 | ||
8 | cp Makefile.ssl Makefile.save | 14 | cp Makefile.ssl Makefile.save |
9 | makedepend -f Makefile.ssl $@ | 15 | # fake the presence of Kerberos |
10 | perl $TOP/util/clean-depend.pl < Makefile.ssl > Makefile.new | 16 | touch $TOP/krb5.h |
17 | if [ "$MAKEDEPEND" = "gcc" ]; then | ||
18 | sed -e '/^# DO NOT DELETE.*/,$d' < Makefile.ssl > Makefile.tmp | ||
19 | echo '# DO NOT DELETE THIS LINE -- make depend depends on it.' >> Makefile.tmp | ||
20 | gcc -D OPENSSL_DOING_MAKEDEPEND -M $@ >> Makefile.tmp | ||
21 | perl $TOP/util/clean-depend.pl < Makefile.tmp > Makefile.new | ||
22 | rm -f Makefile.tmp | ||
23 | else | ||
24 | ${MAKEDEPEND} -D OPENSSL_DOING_MAKEDEPEND -f Makefile.ssl $@ | ||
25 | perl $TOP/util/clean-depend.pl < Makefile.ssl > Makefile.new | ||
26 | fi | ||
11 | mv Makefile.new Makefile.ssl | 27 | mv Makefile.new Makefile.ssl |
28 | # unfake the presence of Kerberos | ||
29 | rm $TOP/krb5.h | ||