From 0960e34bf2165a19db2576bc63347ec4f32e3250 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Tue, 6 Apr 1999 00:52:56 +0000 Subject: [PATCH] Add $CC_MKDEP to override $CC and the -c option --- build/mkdep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5