- Replace the
TEMPLATE
prefix within the headers files in theinclude
/src
directory with your project name. - Run
make all
to test and build and the project. - Add, remove, or modify the
src
andinclude
directories as needed. - Modify the
Makefile
to suit your needs (ie theTARGET
variable). - Run
make clean all
to 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 tests
This 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/fibonacci
This 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 clean
This removes the obj
and bin
directories.