Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
0960e34b
Commit
0960e34b
authored
Apr 06, 1999
by
Hallvard Furuseth
Browse files
Add $CC_MKDEP to override $CC and the -c option
parent
cf4371d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
build/mkdep
View file @
0960e34b
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment