-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
49 lines (36 loc) · 1.06 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
# This affects the memory usage of the program
# we use 1 byte for every 4 bp in kmers. Ideally
# this parameter should be a multiple of 4.
# Actual maximum kmer size is 1 less.
MAX_KMER_SIZE = 32
CC = g++
CXX = g++
INCLUDES = -I.
CXXFLAGS = -c -Wall -Wno-reorder $(INCLUDES) -DMAX_KMER_SIZE=$(MAX_KMER_SIZE) -fPIC -fopenmp
LDFLAGS =
# remove -lgomp if you do not have openmp
LDLIBS = -lm -lz -lgomp -lstdc++
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: BFCounter
OBJECTS = CountBF.o DumpBF.o Kmer.o KmerIntPair.o KmerIterator.o hash.o fastq.o
BFCounter: BFCounter.o $(OBJECTS)
$(CC) $(INCLUDES) $(OBJECTS) BFCounter.o -o BFCounter $(LDFLAGS) $(LDLIBS)
BFCounter.o: BFCounter.cpp
CountBF.o: CountBF.cpp
DumpBF.o: DumpBF.cpp
KmerIntPair.o: KmerIntPair.cpp
KmerIterator.o: KmerIterator.hpp KmerIterator.cpp
fastq.o: fastq.hpp fastq.cpp
kmer.o: kmer.hpp kmer.cpp
hash.o: hash.hpp hash.cpp
clean:
rm -rf *.o
rm -rf BFCounter