Makefile: Disable rules by default
This commit is contained in:
parent
bf0386c938
commit
34e2a2ad66
4
Makefile
4
Makefile
|
@ -1,8 +1,8 @@
|
|||
# This file is generated by tools/dmake, do not edit.
|
||||
|
||||
# To compile without rules, use 'make HAVE_RULES=no'
|
||||
# To compile with rules, use 'make HAVE_RULES=yes'
|
||||
ifndef HAVE_RULES
|
||||
HAVE_RULES=yes
|
||||
HAVE_RULES=no
|
||||
endif
|
||||
|
||||
ifndef CXXFLAGS
|
||||
|
|
|
@ -93,10 +93,10 @@ static void getCppFiles(std::vector<std::string> &files, const std::string &path
|
|||
}
|
||||
|
||||
|
||||
static void makeConditionalVariable(std::ostream &os, const std::string &variable, const std::string &value)
|
||||
static void makeConditionalVariable(std::ostream &os, const std::string &variable, const std::string &defaultValue)
|
||||
{
|
||||
os << "ifndef " << variable << '\n'
|
||||
<< " " << variable << '=' << value << '\n'
|
||||
<< " " << variable << '=' << defaultValue << '\n'
|
||||
<< "endif\n"
|
||||
<< "\n";
|
||||
}
|
||||
|
@ -202,8 +202,8 @@ int main(int argc, char **argv)
|
|||
}
|
||||
|
||||
fout << "# This file is generated by tools/dmake, do not edit.\n\n";
|
||||
fout << "# To compile without rules, use 'make HAVE_RULES=no'\n";
|
||||
makeConditionalVariable(fout, "HAVE_RULES", "yes");
|
||||
fout << "# To compile with rules, use 'make HAVE_RULES=yes'\n";
|
||||
makeConditionalVariable(fout, "HAVE_RULES", "no");
|
||||
|
||||
// Makefile settings..
|
||||
if (release) {
|
||||
|
|
Loading…
Reference in New Issue