- Replace the
TEMPLATEprefix within the headers files in theinclude/srcdirectory with your project name. - Run
make allto test and build and the project. - Add, remove, or modify the
srcandincludedirectories as needed. - Modify the
Makefileto suit your needs (ie theTARGETvariable). - Run
make clean allto rebuild the project.
include: contains the project headers.src: contains the project source files.tests: contains the project tests.obj: contains the project object files.bin: contains the project and tests binary.compile_flags.txt: contains the project compilation flags for clangd.Makefile: contains the project build rules.
make testsThis builds each test in the tests directory and runs them.
Each test binary includes all src objects (except the main.o one).
You may only test non-static functions of source files.
make bin/fibonacciThis builds the fibonacci binary.
You may change the TARGET variable in the Makefile to build with a different name.
Update the MAIN_OBJ to point to the object containing the main function.
make cleanThis removes the obj and bin directories.