>>999367
>automatically on Windows, Linux, BSD and OSX
Only support POSIX. If you really need a different OS, make a "Makefile.os".
>also including some library(eg. SDL2)
You retarded? Either you let the compiler do the job of finding it via -l or you can just do like Cmake does: user a SDL2_PATH variable. You know make has variables, right?