-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 858 Bytes
/
Makefile
File metadata and controls
35 lines (27 loc) · 858 Bytes
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
29
30
31
32
33
34
35
CXX = clang++-17
# themachine
CXXFLAGS = -Wall -std=c++23 -mbmi -mbmi2 -mavx2 -static
# Zaratan
# CXXFLAGS = -Wall -std=c++23 -mbmi -mbmi2 -mavx512f -mavx512vl -mavx512bw -mavx2 -static
CXXFLAGS += -Iexternal/tlx # dep of pasta-toolbox/bit_vector
CXXFLAGS += -Iexternal/bit_vector/include # pasta-toolbox/bit_vector
CXXFLAGS += -Iexternal/utils/include
CXXFLAGS += -Iinclude
INCL = include/orzo
ifeq ($(DEBUG),1)
CXXFLAGS += -DDEBUG -g -O0
else
CXXFLAGS += -DNDEBUG -O3 -flto
endif
ifeq ($(CHECK_CORRECTNESS),1)
CXXFLAGS += -DCHECK_CORRECTNESS
endif
all: orzo-benchmark
.PHONY: clean
clean:
rm -f obj/*.o
rm bin/orzo-benchmark
obj/comparison.o: benchmarking/comparison.cc $(INCL)/utils.h $(INCL)/bitvector.h $(INCL)/orzo.h
$(CXX) $(CXXFLAGS) -c benchmarking/comparison.cc -o $@
orzo-benchmark: obj/comparison.o
$(CXX) $(CXXFLAGS) -o bin/$@ $^