diff --git a/tools/dmake.cpp b/tools/dmake.cpp index d9b1636d2..c352ad60e 100644 --- a/tools/dmake.cpp +++ b/tools/dmake.cpp @@ -27,25 +27,20 @@ #include "../cli/filelister.h" -static std::string builddir(std::string filename); -static std::string objfile(std::string cppfile); -static void getDeps(const std::string &filename, std::vector &depfiles); - - -std::string builddir(std::string filename) +static std::string builddir(std::string filename) { if (filename.compare(0,4,"lib/") == 0) filename = "$(SRCDIR)" + filename.substr(3); return filename; } -std::string objfile(std::string cppfile) +static std::string objfile(std::string cppfile) { cppfile.erase(cppfile.rfind(".")); return builddir(cppfile + ".o"); } -void getDeps(const std::string &filename, std::vector &depfiles) +static void getDeps(const std::string &filename, std::vector &depfiles) { // Is the dependency already included? if (std::find(depfiles.begin(), depfiles.end(), filename) != depfiles.end())