summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index f773d2b..3cd6b99 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CFLAGS = -g -Wall -Wextra
+CFLAGS = -g -Wall -Wextra -O2
check: check-vec check-spvec check-sptree check-map
# see scripts/coverage for coverage testing
@@ -35,28 +35,28 @@ bench: bench-vec bench-spvec bench-sptree bench-map
bench-vec:
mkdir -p build
- $(CC) $(CFLAGS) -O2 \
+ $(CC) $(CFLAGS) \
-Iinclude -Ideps/covsrv/include \
tests/vec.c -o build/vec_opt
time ./build/vec_opt 2> build/vec_bench.txt
bench-spvec:
mkdir -p build
- $(CC) $(CFLAGS) -O2 \
+ $(CC) $(CFLAGS) \
-Iinclude -Ideps/covsrv/include \
tests/spvec.c -o build/spvec_opt
time ./build/spvec_opt 2> build/spvec_bench.txt
bench-sptree:
mkdir -p build
- $(CC) $(CFLAGS) -O2 \
+ $(CC) $(CFLAGS) \
-Iinclude -Ideps/covsrv/include \
tests/sptree.c -o build/sptree_opt
time ./build/sptree_opt 2> build/sptree_bench.txt
bench-map:
mkdir -p build
- $(CC) $(CFLAGS) -O2 \
+ $(CC) $(CFLAGS) \
-Iinclude -Ideps/covsrv/include \
tests/map.c -o build/map_opt
time ./build/map_opt 2> build/map_bench.txt