forked from pyrite-dev/pmake
watcom
This commit is contained in:
parent
f5e4e6990b
commit
fac750a2b3
4 changed files with 31 additions and 4 deletions
|
|
@ -4,7 +4,15 @@ const Watcom = new pmake.Compiler();
|
|||
Watcom.target = "Watcom";
|
||||
Watcom.description = "Open Watcom";
|
||||
|
||||
Watcom.compile = function(target, obj, src) {
|
||||
Watcom.output = function(target) {
|
||||
if(target instanceof pmake.LibraryProject) {
|
||||
return target.output + ".lib";
|
||||
}
|
||||
|
||||
return pmake.Compiler.prototype.output.call(this, target);
|
||||
}
|
||||
|
||||
Watcom.compile = function(target, obj, src) {
|
||||
function add_i(x) {
|
||||
return "-i=" + x;
|
||||
}
|
||||
|
|
@ -22,6 +30,7 @@ Watcom.compile = function(target, obj, src) {
|
|||
|
||||
Watcom.link = function(target, files) {
|
||||
if(target instanceof pmake.LibraryProject) {
|
||||
return "wlib -q -b -n -fo " + this.output(target) + " " + files.join(" ");
|
||||
} else if(target instanceof pmake.ExecutableProject) {
|
||||
function add_file(x) {
|
||||
return "file \"" + x + "\"";
|
||||
|
|
@ -35,7 +44,7 @@ Watcom.link = function(target, files) {
|
|||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
};
|
||||
|
||||
pmake.register(Watcom);
|
||||
pmake.register(Watcom);
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue