forked from fbreitwieser/krakenuniq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
62 lines (40 loc) · 1.76 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
CXX = g++
FOPENMP?=-fopenmp
CXXFLAGS = -Wall -std=c++0x $(FOPENMP) -I./gzstream -O2 -Wfatal-errors ${CPPFLAGS}
#CXXFLAGS = -Wall -std=c++11 $(FOPENMP) -O3 -Wfatal-errors
PROGS1 = classify db_sort set_lcas db_shrink build_taxdb read_uid_mapping count_unique
TEST_PROGS = grade_classification dump_taxdb test_hll_on_db
PROGS = $(PROGS1) $(TEST_PROGS)
#LIBFLAGS = -L. -lz -lgzstream ${LDFLAGS}
LIBFLAGS = -L. -lz ${LDFLAGS}
.PHONY: all install clean
all: $(PROGS)
allall: $(PROGS) $(TEST_PROGS)
install: $(PROGS)
cp $(PROGS) $(KRAKEN_DIR)/
clean:
rm -rf $(PROGS) $(TEST_PROGS) *.o *.dSYM *.gch
db_shrink: krakendb.o quickfile.o
db_sort: krakendb.o quickfile.o
set_lcas: krakendb.o quickfile.o krakenutil.o seqreader.o uid_mapping.o
grade_classification: taxdb.h report-cols.h
read_uid_mapping: quickfile.o
count_unique: hyperloglogplus.h
test_hll_on_db: krakendb.o hyperloglogplus.h quickfile.o
classify: classify.cpp krakendb.o quickfile.o krakenutil.o seqreader.o uid_mapping.o gzstream.o hyperloglogplus.h taxdb.h report-cols.h
$(CXX) $(CXXFLAGS) -o classify $^ $(LIBFLAGS)
build_taxdb: taxdb.h report-cols.h quickfile.o
make_seqid_to_taxid_map: quickfile.o
read_uid_mapping: quickfile.o krakenutil.o uid_mapping.o
krakenutil.o: krakenutil.cpp krakenutil.hpp taxdb.h report-cols.h
$(CXX) $(CXXFLAGS) -c krakenutil.cpp
krakendb.o: krakendb.cpp krakendb.hpp quickfile.hpp
$(CXX) $(CXXFLAGS) -c krakendb.cpp
seqreader.o: seqreader.cpp seqreader.hpp quickfile.hpp
$(CXX) $(CXXFLAGS) -c seqreader.cpp
gzstream.o: gzstream/gzstream.C gzstream/gzstream.h
$(CXX) $(CXXFLAGS) -c -O gzstream/gzstream.C
quickfile.o: quickfile.cpp quickfile.hpp
$(CXX) $(CXXFLAGS) -c quickfile.cpp
uid_mapping.o: krakenutil.hpp uid_mapping.hpp uid_mapping.cpp
$(CXX) $(CXXFLAGS) -c uid_mapping.cpp