1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-30 15:39:54 +00:00

mymake: -I is a compiler flag not a linger flag; added -DMYMAKE

This commit is contained in:
Zeno Rogue 2020-03-16 21:06:11 +01:00
parent 95aace3566
commit bd5fe67e17

View File

@ -17,7 +17,7 @@
using namespace std; using namespace std;
string opts = "-DFHS -DLINUX -DWHATEVER -I/usr/include/SDL"; string opts = "-DFHS -DLINUX -DWHATEVER -DMYMAKE -I/usr/include/SDL";
string standard = " -std=c++11"; string standard = " -std=c++11";
@ -80,11 +80,11 @@ int main(int argc, char **argv) {
else if(s.substr(0, 2) == "-l") else if(s.substr(0, 2) == "-l")
linker += " " + s; linker += " " + s;
else if(s == "-I") { else if(s == "-I") {
linker += " " + s + " " + argv[i+1]; opts += " " + s + " " + argv[i+1];
i++; i++;
} }
else if(s.substr(0, 2) == "-I") else if(s.substr(0, 2) == "-I")
linker += " " + s; opts += " " + s;
else { else {
if(s.size() >= 5 && s.substr(s.size() - 4) == ".cpp") if(s.size() >= 5 && s.substr(s.size() - 4) == ".cpp")
s = s.substr(0, s.size() - 4); s = s.substr(0, s.size() - 4);