-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
35 lines (26 loc) · 961 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
CXXFLAGS = -Wall -std=c++11 -I$${HOME}/include
LDFLAGS = -L$${HOME}/lib -lroaring -lsdsl -ljellyfish-2.0 -lpthread
CPP_FILES := howdesbt.cc \
cmd_make_bf.cc cmd_cluster.cc cmd_build_sbt.cc cmd_query.cc \
cmd_version.cc \
query.cc \
bloom_tree.cc bloom_filter.cc bit_vector.cc file_manager.cc \
bit_utilities.cc utilities.cc support.cc
OBJ_FILES := $(addprefix ./,$(notdir $(CPP_FILES:.cc=.o)))
all: CXXFLAGS += -DNDEBUG -O3
all: clean howdesbt
howdesbt: $(OBJ_FILES)
$(CXX) -o $@ $^ $(LDFLAGS)
query_fp_rate_compiled: scripts/query_fp_rate_compiled.so
scripts/query_fp_rate_compiled.so:
cd scripts ; python query_fp_rate_compiled.setup.py build_ext --inplace
%.o: %.cc
$(CXX) -c -o $@ $^ $(CXXFLAGS)
clean: cleano
rm -f howdesbt
rm -f scripts/query_fp_rate_compiled.so
cleano:
rm -f *.o
rm -f scripts/query_fp_rate_compiled.c
rm -rf scripts/build
rm -f scripts/*.pyc