aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 9cbfa44c3b9502e115209486afde4c82afc75fd6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

debug:
	mkdir -p Debug; \
	cd Debug; \
	cmake -DCMAKE_BUILD_TYPE=Debug ..; \
	make;

release:
	mkdir -p Release; \
	cd Release; \
	cmake -DCMAKE_BUILD_TYPE=Release ..; \
	make;

profile: release
	valgrind --tool=callgrind --callgrind-out-file=callgrind.out ./Release/main
	kcachegrind callgrind.out

test:
	fish generate.fish;
	make debug;
	./Debug/test;

format:
	clang-format -i src/*.c include/*.h tests/*.c *.c