Fix absolute path in Makefile

This commit is contained in:
Thraix
2019-06-23 12:50:08 +02:00
parent 313ec9b770
commit f3b798e85e
7 changed files with 93 additions and 16 deletions
+3 -1
View File
@@ -139,7 +139,9 @@ void Makefile::Save(const ConfigFile& conf)
size_t extensionPos = it->find_last_of(".");
size_t slash = it->find_last_of("/")+1;
std::string oFile = it->substr(slash, extensionPos - slash)+".o ";
outputFile << "$(OBJPATH)/" << oFile << ": " << *deps << std::endl;
outputFile << "$(OBJPATH)/" << oFile << ": ";
deps->Output(outputFile, conf);
outputFile << std::endl;
outputFile << "\t$(info -[" << (int)(i / (float)cppFiles.size() * 100) << "%]- $<)" << std::endl;
outputFile << "\t$(CC) $(CFLAGS) -o $@ $<" << std::endl;
//std::cout << *deps << std::endl;