Skip to content

Abrifq/almost-automated-makefile-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Almost Automated Makefile Template

Probably my new default makefile.

This file will setup your include paths, generate dependency files automatically (to rebuild when only the header file changes) and provide a basic starting point.

Until I can find a reliable fix for it, I recommend adding the source files by hand to the makefile. Subfolder resolution is a bit weak compared to what I like, however, I also don't want to recursively execute a recipe. Maybe I will use find, who knows... Currently, this does not support archive files, however i believe it could be added by putting it between object compilation and executable linking. Currently, this does not support having more than two targets (final libraries and executables), however, if you name a target with lib<name>.so, -fPIC and -shared arguments will get enabled automatically.

It fits my needs, hope it does yours too.

About

Probably my new default makefile.

Topics

Resources

License

Stars

Watchers

Forks

Contributors