1 # set some compiler flags
4 # find *.c in the current directory
5 SOURCES=$(wildcard *.c)
6 TESTS=$(wildcard test/*.c)
8 # define the output objects by replacing .c with .o
10 TEST_TARGETS=$(TESTS:.c=)
12 # this will make all objects
13 all: $(TEST_TARGETS) $(TARGETS)
16 # each objects will be build by a *.c file
21 # this will delete all objects
22 # if not all objects are there, they will be compiled first
23 clean: $(TARGETS) $(TEST_TARGETS)