works for gcc

This commit is contained in:
Nishi 2026-05-09 16:39:35 +09:00
commit f5e4e6990b
Signed by: nishi
GPG key ID: 27EF69B208EB9343
3 changed files with 45 additions and 11 deletions

View file

@ -130,17 +130,19 @@ function make(output) {
mk.write("\n");
mk.write(pmake.compiler.output(self) + ": " + objs.join(" ") + "\n");
mk.write(" " + pmake.compiler.link(self, objs) + "\n");
mk.write(" @echo LINK " + pmake.compiler.output(self) + "\n");
mk.write(" $(SILENT)" + pmake.compiler.link(self, objs) + "\n");
mk.write("\n");
for(var i = 0; i < objs.length; i++) {
mk.write(objs[i] + ": " + self.sources[i] + "\n");
mk.write(" " + pmake.compiler.compile(self, objs[i], self.sources[i]) + "\n");
mk.write(" @echo CC/CXX " + self.sources[i] + "\n");
mk.write(" $(SILENT)" + pmake.compiler.compile(self, objs[i], self.sources[i]) + "\n");
mk.write("\n");
}
mk.write("clean: \n");
mk.write(" $(SILENT)$(RM) " + pmake.compiler.output(self) + " *.o *.exe *.a *.lib *.so *.dll\n");
mk.write(" $(SILENT)$(RM) " + pmake.compiler.output(self) + " " + objs.join(" ") + "\n");
}
mk.close();