-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (31 loc) · 1.31 KB
/
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
37
38
39
40
41
BIN=bin
SRC=src
INCLUDE=-I /usr/local/include/ -I include/ # -I $(HOME)/tbb2017_20160916oss/include/
# BOOST_INCLUDE=-I /usr/include/
LIB=-L /usr/local/lib/ # -L $(HOME)/tbb2017_20160916oss/lib/
BOOST_LIB=/usr/lib/x86_64-linux-gnu/
FLAGS=-O3 -std=c++11
# DEBUGFLAGS=-DWITHGPERFTOOLS -g -fno-inline
# enable debug symbols and no inlining for better call stack info
# DEBUGFLAGS=-g -fno-inline
# DEBUGFLAGS=-g
all: create-dir indexer nb-mapper tests nb-sample #nb-bit_tree
create-dir:
mkdir -p $(BIN)
indexer: create-dir
g++ $(FLAGS) -o $(BIN)/$(@) $(SRC)/index_builder.cpp $(INCLUDE) $(BOOST_INCLUDE) $(LIB) -lbf
nb-sample: create-dir
g++ $(FLAGS) -o $(BIN)/sample $(SRC)/sample_reads.cpp $(INCLUDE) $(LIB)
nb-mapper: create-dir
# g++ $(FLAGS) -fopenmp -o $(BIN)/mapper $(SRC)/mapper.cpp $(INCLUDE) $(BOOST_INCLUDE) $(LIB) -lbf
g++ $(FLAGS) $(DEBUGFLAGS) -o $(BIN)/mapper $(SRC)/mapper.cpp $(INCLUDE) $(BOOST_INCLUDE) $(LIB) -lbf
nb-bit_tree: create-dir
g++ $(FLAGS) -o $(BIN)/bit_tree $(SRC)/bit_tree_binary.cpp $(INCLUDE) $(BOOST_INCLUDE) $(LIB)
test_cbf: create-dir
g++ $(FLAGS) -fopenmp -o $(BIN)/$(@) $(SRC)/test_count_bf.cpp $(INCLUDE) $(LIB) -I /btl_bloomfilter-master/
clean:
rm -f $(BIN)/*
install:
cp $(BIN)/* /usr/local/bin/
tests: create-dir
g++ $(FLAGS) -o $(BIN)/nb_tests $(INCLUDE) tests/*_test.cpp -lbf