Example of Makefiles for auto-building solutions. Most of all, this template is targeted for auto resolving C/C++ source file dependencies during build process. Another goal is re-build only those sources (and their dependencies), that have been modified.
- Table of contents
- Software requirements for development
- Contacts and support
- How to use?
3.1. Create solution
3.2. Build solution
- Git 2.25.1
- GNU Bash 5.0.17(1)-release
- GNU Make 4.4.1
- GNU coreutils 8.30
If you have any questions or suggestions, contact the developers:
- Place "Makefile", ".global.mk" and ".template.mk" (take them from this example) in the solution directory
- Prepare your solution using 'make make-prepare';
2.1. Note! If you previously type projects names in Makefile:BuildingOrder variable and then execute 'make make-prepare', Make will create all marked projects - Create projects using 'make make-project ProjectName=MyNewProject'
- Add project specific targets to the "MyNewProject.mk" (like in an example)
Now you can use Make to build your solution:
- Run 'make' in the solution directory. Make will build each your project with dependencies
- If you want to build only one project, use 'make MyNewProject' or directly run project makefile 'make -f MyNewProject.mk'