|
|
|
|
|
by buserror
366 days ago
|
|
Very nice article, seems to mention all the modern bits that helps making makefile so, SO much easier than in decades past... The interesting bits are for example the -MMD flag to gcc, which outputs a .d file you can -include ${wildcard *.d} and you get free, up to date dependencies for your headers etc. That and 'vpath' to tell it where to find the source files for % rules, and really, all the hard work is done and your 1/2 page Makefile will stay the same 'forever' and wills still work in 20 years... |
|