mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
ce192ebed0
All those flags existed because we had all the dependencies versioned in the repository, and wanted to have it be consistent, no matter what the local configuration was. Now that the dependencies are gone from the versioned Makefile.ins, it makes much more sense to use the exact same flags as when compiling the object files. Reviewed-by: Rich Salz <rsalz@openssl.org>
27 lines
606 B
Bash
Executable File
27 lines
606 B
Bash
Executable File
#!/bin/sh
|
|
## Wrapper to portably run makedepend or equivalent compiler built-in.
|
|
## Runs on Makefile.in, generates Makefile
|
|
## {- join("\n## ", @autowarntext) -}
|
|
|
|
{- "MAKEDEPEND=" . quotify1($config{makedepprog}) -}
|
|
|
|
case "${MAKEDEPEND}" in
|
|
cat)
|
|
;;
|
|
makedepend)
|
|
${MAKEDEPEND} $@ || exit 1
|
|
;;
|
|
*)
|
|
args="-Werror -MM"
|
|
while [ $# -gt 0 ]; do
|
|
if [ "$1" != '--' ] ; then
|
|
args="$args $1"
|
|
fi
|
|
shift
|
|
done
|
|
sed -e '/DO NOT DELETE THIS LINE/q' Makefile >Makefile.tmp
|
|
${MAKEDEPEND} $args >>Makefile.tmp || exit 1
|
|
mv Makefile.tmp Makefile
|
|
;;
|
|
esac
|