forked from FastFilter/fastfilter_cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (27 loc) · 896 Bytes
/
Makefile
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
36
# Uncomment one of the following to switch between debug and opt mode
OPT = -O3 -DNDEBUG -std=c++17
#OPT = -g -ggdb -fsanitize=address -fno-omit-frame-pointer -Wextra -fsanitize=undefined
CXXFLAGS += -fno-strict-aliasing -Wall -std=c++11 -I. -I../src/ \
-I../src/bloom/ -I../src/cuckoo/ -I../src/gcs \
-I../src/gqf/ -I../src/morton/ -I../src/xorfilter -I../src/ribbon \
-I../src/vqf \
$(OPT)
UNAME_P := $(shell uname -p)
ifeq ($(UNAME_P),x86_64)
CXXFLAGS += -march=native
else
CXXFLAGS +=
endif
LDFLAGS = -Wall -Wextra
HEADERS = $(wildcard ../src/*.h \
../src/bloom/*.h ../src/cuckoo/*.h ../src/gcs/*.h \
../src/gqf/*.h ../src/morton/*.h ../src/xorfilter/*.h ../src/ribbon/*.h \
../src/vqf/*.h \
) *.h
.PHONY: all
BINS = unit
all: $(BINS)
clean:
/bin/rm -f $(BINS)
%.exe: %.cc ${HEADERS} Makefile
$(CXX) $(CXXFLAGS) $< -o $@ $(LDFLAGS)