I use mingw in a command line to compile my C/C++ projects, before mingw I used code::blocks as an IDE. OK code::blocks is fine for a project with multiple files and when I modify a file it takes less time to build than when I use mingw e.g. gcc -Wall -I include_folder src_folder/*.c -o output
.
additionally, I’ve noticed that code::blocks creates .o files for each sources file but mingw doesn’t is there a way to compile automatically each file separately with it’s own .o file and then link them
In conclusion: I want to know how to make a smarter compilation for example if a file hasn’t been modified since the last compilation, it shouldn’t be compiled again to maximize compilation time
I’ve really searched online but I don’t know where to start looking