Skip to content

yazimut/make_template

Repository files navigation

Makefile solution template

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

  1. Table of contents
  2. Software requirements for development
  3. Contacts and support
  4. How to use?
    3.1. Create solution
    3.2. Build solution

Software requirements for development

  • Git 2.25.1
  • GNU Bash 5.0.17(1)-release
  • GNU Make 4.4.1
  • GNU coreutils 8.30

Contacts and support

If you have any questions or suggestions, contact the developers:

How to use?

Create solution

  1. Place "Makefile", ".global.mk" and ".template.mk" (take them from this example) in the solution directory
  2. 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
  3. Create projects using 'make make-project ProjectName=MyNewProject'
  4. Add project specific targets to the "MyNewProject.mk" (like in an example)

Build solution

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'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published