dmake: Disable compiler warnings for external files
This commit is contained in:
parent
1a4ef60e7c
commit
016bcaf9fe
4
Makefile
4
Makefile
|
@ -612,10 +612,10 @@ test/testvarid.o: test/testvarid.cpp lib/cxx11emu.h test/testsuite.h lib/errorlo
|
||||||
$(CXX) ${INCLUDE_FOR_TEST} $(CPPFLAGS) $(CFG) $(CXXFLAGS) $(UNDEF_STRICT_ANSI) -c -o test/testvarid.o test/testvarid.cpp
|
$(CXX) ${INCLUDE_FOR_TEST} $(CPPFLAGS) $(CFG) $(CXXFLAGS) $(UNDEF_STRICT_ANSI) -c -o test/testvarid.o test/testvarid.cpp
|
||||||
|
|
||||||
externals/simplecpp/simplecpp.o: externals/simplecpp/simplecpp.cpp lib/cxx11emu.h externals/simplecpp/simplecpp.h
|
externals/simplecpp/simplecpp.o: externals/simplecpp/simplecpp.cpp lib/cxx11emu.h externals/simplecpp/simplecpp.h
|
||||||
$(CXX) $(CPPFLAGS) $(CFG) $(CXXFLAGS) $(UNDEF_STRICT_ANSI) -c -o externals/simplecpp/simplecpp.o externals/simplecpp/simplecpp.cpp
|
$(CXX) $(CPPFLAGS) $(CFG) $(CXXFLAGS) -w $(UNDEF_STRICT_ANSI) -c -o externals/simplecpp/simplecpp.o externals/simplecpp/simplecpp.cpp
|
||||||
|
|
||||||
externals/tinyxml/tinyxml2.o: externals/tinyxml/tinyxml2.cpp lib/cxx11emu.h externals/tinyxml/tinyxml2.h
|
externals/tinyxml/tinyxml2.o: externals/tinyxml/tinyxml2.cpp lib/cxx11emu.h externals/tinyxml/tinyxml2.h
|
||||||
$(CXX) $(CPPFLAGS) $(CFG) $(CXXFLAGS) $(UNDEF_STRICT_ANSI) -c -o externals/tinyxml/tinyxml2.o externals/tinyxml/tinyxml2.cpp
|
$(CXX) $(CPPFLAGS) $(CFG) $(CXXFLAGS) -w $(UNDEF_STRICT_ANSI) -c -o externals/tinyxml/tinyxml2.o externals/tinyxml/tinyxml2.cpp
|
||||||
|
|
||||||
tools/dmake.o: tools/dmake.cpp lib/cxx11emu.h cli/filelister.h cli/pathmatch.h
|
tools/dmake.o: tools/dmake.cpp lib/cxx11emu.h cli/filelister.h cli/pathmatch.h
|
||||||
$(CXX) ${INCLUDE_FOR_LIB} $(CPPFLAGS) $(CFG) $(CXXFLAGS) $(UNDEF_STRICT_ANSI) -c -o tools/dmake.o tools/dmake.cpp
|
$(CXX) ${INCLUDE_FOR_LIB} $(CPPFLAGS) $(CFG) $(CXXFLAGS) $(UNDEF_STRICT_ANSI) -c -o tools/dmake.o tools/dmake.cpp
|
||||||
|
|
|
@ -78,13 +78,14 @@ static void getDeps(const std::string &filename, std::vector<std::string> &depfi
|
||||||
static void compilefiles(std::ostream &fout, const std::vector<std::string> &files, const std::string &args)
|
static void compilefiles(std::ostream &fout, const std::vector<std::string> &files, const std::string &args)
|
||||||
{
|
{
|
||||||
for (unsigned int i = 0; i < files.size(); ++i) {
|
for (unsigned int i = 0; i < files.size(); ++i) {
|
||||||
|
bool external(files[i].compare(0,10,"externals/") == 0);
|
||||||
fout << objfile(files[i]) << ": " << files[i];
|
fout << objfile(files[i]) << ": " << files[i];
|
||||||
std::vector<std::string> depfiles;
|
std::vector<std::string> depfiles;
|
||||||
depfiles.push_back("lib/cxx11emu.h");
|
depfiles.push_back("lib/cxx11emu.h");
|
||||||
getDeps(files[i], depfiles);
|
getDeps(files[i], depfiles);
|
||||||
for (unsigned int dep = 0; dep < depfiles.size(); ++dep)
|
for (unsigned int dep = 0; dep < depfiles.size(); ++dep)
|
||||||
fout << " " << depfiles[dep];
|
fout << " " << depfiles[dep];
|
||||||
fout << "\n\t$(CXX) " << args << " $(CPPFLAGS) $(CFG) $(CXXFLAGS) $(UNDEF_STRICT_ANSI) -c -o " << objfile(files[i]) << " " << builddir(files[i]) << "\n\n";
|
fout << "\n\t$(CXX) " << args << " $(CPPFLAGS) $(CFG) $(CXXFLAGS)" << (external?" -w":"") << " $(UNDEF_STRICT_ANSI) -c -o " << objfile(files[i]) << " " << builddir(files[i]) << "\n\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue