-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
15 lines (12 loc) · 1.06 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.PHONY: greedy fill_gaps random_subset examine build_FM_index tests
INCLUDEPATHS=-I sdsl-lite/build/include/ -I sdsl-lite/build/external/libdivsufsort/include
LIBS=-lsdsl -ldivsufsort -ldivsufsort64 -fopenmp
LIBPATHS=-L sdsl-lite/build/lib/ -L sdsl-lite/build/external/libdivsufsort/lib/
BINARY_DIR=./bin
SRC_DIR=./src
SRC_FILES=$(SRC_DIR)/examine.cpp $(SRC_DIR)/fill_gaps.cpp $(SRC_DIR)/greedy.cpp $(SRC_DIR)/random_subset.cpp $(SRC_DIR)/FM_index.cpp $(SRC_DIR)/build_FM_index.cpp $(SRC_DIR)/SeqIO.cpp $(SRC_DIR)/util.cpp
syotti:
g++ $(SRC_DIR)/CLI.cpp ${SRC_FILES} -O3 -o $(BINARY_DIR)/syotti -g -Wall -Wno-sign-compare $(LIBPATHS) $(INCLUDEPATHS) $(LIBS) -lz
tests:
g++ $(SRC_DIR)/test_FM_index.cpp ${SRC_FILES} -L googletest/build/lib/ -I googletest/googletest/include -lgtest -lgtest_main -lpthread -o $(BINARY_DIR)/test_FM_index $(LIBPATHS) $(INCLUDEPATHS) $(LIBS) -lz
g++ $(SRC_DIR)/test_greedy.cpp ${SRC_FILES} -L googletest/build/lib/ -I googletest/googletest/include -lgtest -lgtest_main -lpthread -o $(BINARY_DIR)/test_greedy $(LIBPATHS) $(INCLUDEPATHS) $(LIBS) -lz