Like MD_Init, MD now must include a NULL engine pointer in its definition.
[openssl.git] / util / domd
1 #!/bin/sh
2 # Do a makedepend, only leave out the standard headers
3 # Written by Ben Laurie <ben@algroup.co.uk> 19 Jan 1999
4
5 TOP=$1
6 shift
7 if [ "$1" = "-MD" ]; then
8     shift
9     MAKEDEPEND=$1
10     shift
11 fi
12 if [ "$MAKEDEPEND" = "" ]; then MAKEDEPEND=makedepend; fi
13
14 cp Makefile.ssl Makefile.save
15 # fake the presence of Kerberos
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
27 mv Makefile.new Makefile.ssl
28 # unfake the presence of Kerberos
29 rm $TOP/krb5.h