summaryrefslogtreecommitdiff
path: root/test-chill/unit-tests/cprog/Makefile
blob: f5f2608fa1f33f9f48f7386881a07ab44b6477eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
OBJS = $(patsubst %.cc, %.o, $(wildcard *.cc))

.PHONY: all
all: sorter

$(OBJS): %.o: %.cc
	g++ -g -fprofile-arcs -ftest-coverage -c $< -o $@

.PHONY: sorter
sorter: $(OBJS)
	g++ -g -fprofile-arcs -ftest-coverage -o bin/sorter $(OBJS)

.PHONY: clean
clean:
	rm -f *.o
	rm -f *.gcno *.gcda *.gcov
	rm -f bin/sorter