-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
54 lines (36 loc) · 1.09 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
INCLUDES = -I.
MAX_KMER_SIZE=64
CXXFLAGS = -c -pthread -Wall -Wno-reorder -Wno-header-guard $(INCLUDES) -DMAX_KMER_SIZE=$(MAX_KMER_SIZE)
LDFLAGS =
OPENMP=
#ifeq ($(findstring clang,$(shell $(CXX) --version)), clang)
#OPENMP=
#else
#OPENMP=-lgomp
#CXXFLAGS += -fopenmp
#endif
LDLIBS = -lm -lz $(OPENMP) -lpthread
all: CXXFLAGS += -O3
all: target
debug: CXXFLAGS += -g -O0
debug: LDFLAGS += -g
debug: target
profile: CXXFLAGS += -p -g -O2
profile: LDFLAGS += -p -g
profile: clean
profile: target
target: KmerStream KmerStreamJoin
OBJECTS = lsb.o Kmer.o KmerIterator.o hash.o RepHash.o
KmerStream: KmerStream.o $(OBJECTS)
$(CXX) $(INCLUDES) $(OBJECTS) KmerStream.o $(LDFLAGS) $(LDLIBS) -o KmerStream
KmerStreamJoin: StreamJoin.o StreamCounter.hpp
$(CXX) $(INCLUDES) StreamJoin.o $(LDFLAGS) $(LDLIBS) -o KmerStreamJoin
lsb.o: lsb.cpp lsb.hpp
KmerStream.o: KmerStream.cpp StreamCounter.hpp
Kmer.o: Kmer.cpp Kmer.hpp
KmerIterator.o: KmerIterator.cpp KmerIterator.hpp
hash.o: hash.cpp hash.hpp
RepHash.o: RepHash.cpp RepHash.hpp
StreamJoin.o: StreamJoin.cpp
clean:
rm -f *.o KmerStream KmerStreamJoin