works for gcc
This commit is contained in:
parent
ae7ff555d9
commit
f5e4e6990b
3 changed files with 45 additions and 11 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue