diff options
author | beck <> | 2002-05-15 02:29:21 +0000 |
---|---|---|
committer | beck <> | 2002-05-15 02:29:21 +0000 |
commit | b64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9 (patch) | |
tree | fa27cf82a1250b64ed3bf5f4a18c7354d470bbcc /src/lib/libcrypto/util/domd | |
parent | e471e1ea98d673597b182ea85f29e30c97cd08b5 (diff) | |
download | openbsd-b64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9.tar.gz openbsd-b64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9.tar.bz2 openbsd-b64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9.zip |
OpenSSL 0.9.7 stable 2002 05 08 merge
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 | ||