Makefile-template
Template repository to build a set of applications and dependencies with makefile in C
Structure
- apps: Application directory (e.g.: creating a postfix evaluator)
- mk: Directory containing all custom makefile (e.g.:
postfix.mk
which takes care of telling makefile to compileapps_targets
withpostfix
)
- mk: Directory containing all custom makefile (e.g.:
- bin: Binaries directory, after
make all
ormake bin
an archive will be created that includes allsrc
code- mk: Makefile directory to extend binaries
- include: Headers directory, this directory is meant for public headers and public headers only
- src: Source directory, use this directory for structures codes or private implementations (e.g.: stack implementation and its own private header). All this code will be compiled and sent to bin
libcompiled.a
- test: Test directory, this directory is meant for tests code
Suggest an improvement
Feel free to suggest new features here