aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: f4c5e8f6c161069d193c25299a9c626c26a3a8b7 (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

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 Release
	valgrind --tool=callgrind --dump-instr=yes --callgrind-out-file=callgrind.out ./Release/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