aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 35a4a0e252ed8b0777396cf6326bb24215dca1a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
all: prog

prog:
	@mkdir -p bin
	make -C src
	@mv src/prog ./bin

debug:
	@mkdir -p bin
	make -C src debug
	@mv src/prog ./bin/prog-debug

# valgrind:
# 	@mkdir -p bin
# 	make -C src debug
# 	@cp src/prog ./bin/prog-debug
# 	valgrind --leak-check=full --track-origins=yes ./bin/prog-debug
#
# test:
# 	make -C test/
# 	@mkdir -p bin
# 	@cp test/test ./bin
# 	@./bin/test

.PHONY : clean test

clean :
	make clean -C test
	make clean -C src
	rm -rf bin