From 1215c65e400e56716b11013634608215ea758d7b Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 26 Sep 2019 13:17:48 +0200 Subject: [PATCH] mymake: support -l and -I --- mymake.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mymake.cpp b/mymake.cpp index cae2ce19..df229941 100644 --- a/mymake.cpp +++ b/mymake.cpp @@ -73,6 +73,14 @@ int main(int argc, char **argv) { optimized = 3, compiler += " -O3", obj_dir += "/O3", setdir += "../"; else if(s.substr(0, 4) == "-std") 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); } if(!optimized)