From: Hallvard Furuseth Date: Tue, 6 Apr 1999 00:52:56 +0000 (+0000) Subject: Add $CC_MKDEP to override $CC and the -c option X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~244 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0960e34bf2165a19db2576bc63347ec4f32e3250;p=openldap Add $CC_MKDEP to override $CC and the -c option --- diff --git a/build/mkdep b/build/mkdep index 07fd779a90..197d4d5d1e 100755 --- a/build/mkdep +++ b/build/mkdep @@ -29,7 +29,7 @@ set -e # exit immediately if any errors occur MAKE=Makefile # default makefile name is "Makefile" NOSLASH="no" # by default, / dependencies are included -CC=${CC-cc} # default compiler is cc +CC=${CC_MKDEP-${CC-cc}} # default compiler is cc : ${CC_MKDEP_FLAGS="-M"} # cc -M usually produces dependencies SRCDIR="" SED=cat @@ -53,7 +53,7 @@ while : # -c allows you to select a compiler to use (default is cc) -c) - CC=$2 + [ -z "$CC_MKDEP" ] && CC=$2 shift; shift ;; # the -p flag produces "program: program.c" style dependencies