aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: b5489e83c699246518d765b26c83c24ebb280f0c (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
24
25
26
27
28

debug:
	mkdir -p Debug
	cmake -DCMAKE_BUILD_TYPE=Debug -B Debug
	cmake --build Debug

release:
	mkdir -p Release
	cmake -DCMAKE_BUILD_TYPE=Release -B Release
	cmake --build Release

profile:
	mkdir -p Profile
	cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -B Profile
	cmake --build Profile
	valgrind --tool=callgrind --dump-instr=yes --callgrind-out-file=callgrind.out ./Profile/main 100MB.json 1
	kcachegrind callgrind.out

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

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

check:
	clang-format -i --dry-run src/*.c include/*.h tests/*.c *.c --fail-on-incomplete-format
	make test