1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-20 23:50:27 +00:00

mymake: support -l and -I

This commit is contained in:
Zeno Rogue 2019-09-26 13:17:48 +02:00
parent a741446b7b
commit 1215c65e40

View File

@ -73,6 +73,14 @@ int main(int argc, char **argv) {
optimized = 3, compiler += " -O3", obj_dir += "/O3", setdir += "../"; optimized = 3, compiler += " -O3", obj_dir += "/O3", setdir += "../";
else if(s.substr(0, 4) == "-std") else if(s.substr(0, 4) == "-std")
standard = s; standard = s;
else if(s.substr(0, 2) == "-l")
linker += " " + s;
else if(s == "-I") {
linker += " " + s + " " + argv[i+1];
i++;
}
else if(s.substr(0, 2) == "-I")
linker += " " + s;
else modules.push_back(s); else modules.push_back(s);
} }
if(!optimized) if(!optimized)