|
Lines 57-64
static std::string objfiles(const std::vector<std::string> &files)
Link Here
|
| 57 |
static void getDeps(const std::string &filename, std::vector<std::string> &depfiles) |
57 |
static void getDeps(const std::string &filename, std::vector<std::string> &depfiles) |
| 58 |
{ |
58 |
{ |
| 59 |
static const std::vector<std::string> externalfolders = {"externals", |
59 |
static const std::vector<std::string> externalfolders = {"externals", |
| 60 |
"externals/simplecpp", |
60 |
"externals/simplecpp" |
| 61 |
"externals/tinyxml" |
|
|
| 62 |
}; |
61 |
}; |
| 63 |
|
62 |
|
| 64 |
// Is the dependency already included? |
63 |
// Is the dependency already included? |
|
Lines 383-391
int main(int argc, char **argv)
Link Here
|
| 383 |
<< "endif\n\n"; |
382 |
<< "endif\n\n"; |
| 384 |
|
383 |
|
| 385 |
makeConditionalVariable(fout, "PREFIX", "/usr"); |
384 |
makeConditionalVariable(fout, "PREFIX", "/usr"); |
| 386 |
makeConditionalVariable(fout, "INCLUDE_FOR_LIB", "-Ilib -isystem externals -isystem externals/simplecpp -isystem externals/tinyxml"); |
385 |
makeConditionalVariable(fout, "INCLUDE_FOR_LIB", "-Ilib -isystem externals -isystem externals/simplecpp"); |
| 387 |
makeConditionalVariable(fout, "INCLUDE_FOR_CLI", "-Ilib -isystem externals/simplecpp -isystem externals/tinyxml"); |
386 |
makeConditionalVariable(fout, "INCLUDE_FOR_CLI", "-Ilib -isystem externals/simplecpp"); |
| 388 |
makeConditionalVariable(fout, "INCLUDE_FOR_TEST", "-Ilib -Icli -isystem externals/simplecpp -isystem externals/tinyxml"); |
387 |
makeConditionalVariable(fout, "INCLUDE_FOR_TEST", "-Ilib -Icli -isystem externals/simplecpp"); |
| 389 |
|
388 |
|
| 390 |
fout << "BIN=$(DESTDIR)$(PREFIX)/bin\n\n"; |
389 |
fout << "BIN=$(DESTDIR)$(PREFIX)/bin\n\n"; |
| 391 |
fout << "# For 'make man': sudo apt-get install xsltproc docbook-xsl docbook-xml on Linux\n"; |
390 |
fout << "# For 'make man': sudo apt-get install xsltproc docbook-xsl docbook-xml on Linux\n"; |
|
Lines 417-423
int main(int argc, char **argv)
Link Here
|
| 417 |
fout << "run-dmake: dmake\n"; |
416 |
fout << "run-dmake: dmake\n"; |
| 418 |
fout << "\t./dmake\n\n"; |
417 |
fout << "\t./dmake\n\n"; |
| 419 |
fout << "generate_cfg_tests: tools/generate_cfg_tests.o $(EXTOBJ)\n"; |
418 |
fout << "generate_cfg_tests: tools/generate_cfg_tests.o $(EXTOBJ)\n"; |
| 420 |
fout << "\tg++ -isystem externals/tinyxml -o generate_cfg_tests tools/generate_cfg_tests.o $(EXTOBJ)\n"; |
419 |
fout << "\tg++ -o generate_cfg_tests tools/generate_cfg_tests.o $(EXTOBJ)\n"; |
| 421 |
fout << "clean:\n"; |
420 |
fout << "clean:\n"; |
| 422 |
fout << "\trm -f build/*.o lib/*.o cli/*.o test/*.o tools/*.o externals/*/*.o testrunner dmake cppcheck cppcheck.exe cppcheck.1\n\n"; |
421 |
fout << "\trm -f build/*.o lib/*.o cli/*.o test/*.o tools/*.o externals/*/*.o testrunner dmake cppcheck cppcheck.exe cppcheck.1\n\n"; |
| 423 |
fout << "man:\tman/cppcheck.1\n\n"; |
422 |
fout << "man:\tman/cppcheck.1\n\n"; |