Make "make depend" work on MacOS out of the box.

This commit is contained in:
Ben Laurie
2013-01-19 14:14:30 +00:00
parent bba43f3f43
commit a6bbbf2ff5
8 changed files with 70 additions and 57 deletions

View File

@@ -14,7 +14,7 @@ if [ "$MAKEDEPEND" = "" ]; then MAKEDEPEND=makedepend; fi
cp Makefile Makefile.save
# fake the presence of Kerberos
touch $TOP/krb5.h
if expr "$MAKEDEPEND" : '.*gcc$' > /dev/null; then
if expr "$MAKEDEPEND" : 'cc' > /dev/null; then
args=""
while [ $# -gt 0 ]; do
if [ "$1" != "--" ]; then args="$args $1"; fi