-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathMakefile
28 lines (26 loc) · 1.01 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
CXX=g++
CXXFLAGS=-Wall -O3 -std=c++0x
LINKFLAGS=-I . -lpthread -lz
DEBUG=
jellyfishPath=`which jellyfish`
jellyfishVersion=`jellyfish --version | cut -f2 -d' ' | cut -f1 -d'.'`
OBJECTS=KmerCode.o ErrorCorrection.o
all: main.o $(OBJECTS)
$(CXX) -o rcorrector $(CXXFLAGS) $(OBJECTS) main.o $(LINKFLAGS)
if [ ! $(jellyfishPath) ] || [ $(jellyfishVersion) -ne 2 ] ;\
then \
if [ ! -f ./jellyfish/bin/jellyfish ] ;\
then \
wget -O jellyfish.tar.gz https://github.com/gmarcais/Jellyfish/releases/download/v2.3.0/jellyfish-2.3.0.tar.gz ;\
if [ ! -f jellyfish.tar.gz ] ;\
then \
curl -L -o jellyfish.tar.gz https://github.com/gmarcais/Jellyfish/releases/download/v2.3.0/jellyfish-2.3.0.tar.gz ;\
fi;\
tar -xzf jellyfish.tar.gz ; mv jellyfish-2.3.0 jellyfish ; rm jellyfish.tar.gz ; cd jellyfish && ./configure && make ;\
fi;\
fi;
main.o: main.cpp utils.h Reads.h Store.h File.h
KmerCode.o: KmerCode.cpp KmerCode.h
ErrorCorrection.o: ErrorCorrection.cpp ErrorCorrection.h
clean:
rm -rf *.o *.gch rcorrector