-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (15 loc) · 968 Bytes
/
Makefile
File metadata and controls
21 lines (15 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
all: unit bench query
unit : tests/unit.c include/xorfilter.h include/binaryfusefilter.h
${CC} -std=c99 -g -O2 -fsanitize=address -o unit tests/unit.c -lm -Iinclude -Wall -Wextra -Wshadow -Wcast-qual
ab : tests/a.c tests/b.c
${CC} -std=c99 -o c tests/a.c tests/b.c -lm -Iinclude -Wall -Wextra -Wshadow -Wcast-qual -Wconversion -Wsign-conversion
bench : benchmarks/bench.c include/xorfilter.h include/binaryfusefilter.h
${CC} -std=c99 -O3 -o bench benchmarks/bench.c -lm -Iinclude -Wall -Wextra -Wshadow -Wcast-qual -Wconversion -Wsign-conversion
query : benchmarks/query.c include/xorfilter.h include/binaryfusefilter.h
${CC} -std=c99 -O3 -o query benchmarks/query.c -lm -Iinclude -Wall -Wextra -Wshadow -Wcast-qual -Wconversion -Wsign-conversion
test: unit ab
ASAN_OPTIONS='halt_on_error=1:abort_on_error=1:print_summary=1' \
UBSAN_OPTIONS='halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1' \
./unit
clean:
rm -f unit bench query