Ignore machine-check MSRs
[freebsd-src/fkvm-freebsd.git] / crypto / openssl / util / domd
blob691be7a440ac8295930d1b9e7194dc53e6281a10
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
5 TOP=$1
6 shift
7 if [ "$1" = "-MD" ]; then
8 shift
9 MAKEDEPEND=$1
10 shift
12 if [ "$MAKEDEPEND" = "" ]; then MAKEDEPEND=makedepend; fi
14 cp Makefile Makefile.save
15 # fake the presence of Kerberos
16 touch $TOP/krb5.h
17 if [ "$MAKEDEPEND" = "gcc" ]; then
18 args=""
19 while [ $# -gt 0 ]; do
20 if [ "$1" != "--" ]; then args="$args $1"; fi
21 shift
22 done
23 sed -e '/^# DO NOT DELETE.*/,$d' < Makefile > Makefile.tmp
24 echo '# DO NOT DELETE THIS LINE -- make depend depends on it.' >> Makefile.tmp
25 gcc -D OPENSSL_DOING_MAKEDEPEND -M $args >> Makefile.tmp
26 ${PERL} $TOP/util/clean-depend.pl < Makefile.tmp > Makefile.new
27 rm -f Makefile.tmp
28 else
29 ${MAKEDEPEND} -D OPENSSL_DOING_MAKEDEPEND $@
30 ${PERL} $TOP/util/clean-depend.pl < Makefile > Makefile.new
32 mv Makefile.new Makefile
33 # unfake the presence of Kerberos
34 rm $TOP/krb5.h