summaryrefslogtreecommitdiff
path: root/Makefile
blob: 48e8cb8c3eeef630e27c758a21b14d4326f4891a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
check:
	mkdir -p build
	$(CC) -g -Iinclude tests/vec.c -o build/vec
	$(CC) -g -Iinclude tests/htrie.c -o build/htrie
	valgrind -q --error-exitcode=1 ./build/vec
	valgrind -q --error-exitcode=1 ./build/htrie

bench:
	mkdir -p build
	$(CC) -g -O2 -Iinclude tests/vec.c -o build/vec_opt
	$(CC) -g -O2 -Iinclude tests/htrie.c -o build/htrie_opt
	time ./build/vec_opt 2> build/vec_bench.txt
	time ./build/htrie_opt 2> build/htrie_bench.txt

clean:
	rm -rf build