Skip to content
Snippets Groups Projects
Commit 0960e34b authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

Add $CC_MKDEP to override $CC and the -c option

parent cf4371d1
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment