mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
ced2c2c598
Reviewed-by: Richard Levitte <levitte@openssl.org>
26 lines
645 B
Bash
Executable File
26 lines
645 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
|
|
makedepend)
|
|
cp Makefile.in Makefile
|
|
${MAKEDEPEND} -DOPENSSL_DOING_MAKEDEPEND $@ || exit 1
|
|
;;
|
|
*)
|
|
args="-Werror -M"
|
|
while [ $# -gt 0 ]; do
|
|
if [ "$1" != '--' ] ; then
|
|
args="$args $1"
|
|
fi
|
|
shift
|
|
done
|
|
${MAKEDEPEND} -DOPENSSL_DOING_MAKEDEPEND $args >Makefile.tmp || exit 1
|
|
cat Makefile.in Makefile.tmp >Makefile
|
|
rm Makefile.tmp
|
|
;;
|
|
esac
|