summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/util/domd
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/util/domd')
-rw-r--r--src/lib/libcrypto/util/domd22
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
5TOP=$1 5TOP=$1
6shift 6shift
7if [ "$1" = "-MD" ]; then
8 shift
9 MAKEDEPEND=$1
10 shift
11fi
12if [ "$MAKEDEPEND" = "" ]; then MAKEDEPEND=makedepend; fi
7 13
8cp Makefile.ssl Makefile.save 14cp Makefile.ssl Makefile.save
9makedepend -f Makefile.ssl $@ 15# fake the presence of Kerberos
10perl $TOP/util/clean-depend.pl < Makefile.ssl > Makefile.new 16touch $TOP/krb5.h
17if [ "$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
23else
24 ${MAKEDEPEND} -D OPENSSL_DOING_MAKEDEPEND -f Makefile.ssl $@
25 perl $TOP/util/clean-depend.pl < Makefile.ssl > Makefile.new
26fi
11mv Makefile.new Makefile.ssl 27mv Makefile.new Makefile.ssl
28# unfake the presence of Kerberos
29rm $TOP/krb5.h