]> git.sur5r.net Git - openldap/commitdiff
Add $CC_MKDEP to override $CC and the -c option
authorHallvard Furuseth <hallvard@openldap.org>
Tue, 6 Apr 1999 00:52:56 +0000 (00:52 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Tue, 6 Apr 1999 00:52:56 +0000 (00:52 +0000)
build/mkdep

index 07fd779a907d453848a865283d95e37395c758d8..197d4d5d1e62e3c64c4d9847b1bc15ee9bd67db9 100755 (executable)
@@ -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