3 ms·
Here's my "simple" makefile for C. It's for building a simple executable and a static library. I don't use Make for more complex projects. It has a bunch of ex
by exDM69 9y ago
Here's my "simple" makefile for C. It's for building a simple executable and a static library. I don't use Make for more complex projects.
It has a bunch of extra features, like coverage and profiling and tags files. They are pretty easy to remove if you don't want them.
If you want to put object files to another directory, it's much better to run make in the output directory than to hack your Makefile to output objects to another directory. Make can look for source files elsewhere but not search for object files outside of $PWD.
https://github.com/rikusalminen/makefile-for-c https://github.com/rikusalminen/makefile-for-c