-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
34 lines (24 loc) · 902 Bytes
/
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
EXEC=rattle
CC=g++
CFLAGS=-Wall -Wextra -std=c++14 -O3 -pthread
LIBS=-Ispoa/include
all: $(EXEC)
$(EXEC): main.cpp fasta.o cluster.o utils.o kmer.o similarity.o correct.o
$(CC) -o $(EXEC) $(CFLAGS) $(LIBS) main.cpp fasta.o -lz cluster.o utils.o kmer.o similarity.o correct.o spoa/build/lib/libspoa.a
utils.o: utils.hpp utils.cpp
$(CC) -c $(CFLAGS) utils.cpp
fasta.o: fasta.hpp fasta.cpp
$(CC) -c $(CFLAGS) fasta.cpp
kmer.o: kmer.hpp kmer.cpp
$(CC) -c $(CFLAGS) kmer.cpp
similarity.o: similarity.hpp similarity.cpp
$(CC) -c $(CFLAGS) similarity.cpp
cluster.o: cluster.hpp cluster.cpp kmer.cpp similarity.cpp utils.cpp fasta.cpp
$(CC) -c $(CFLAGS) cluster.cpp kmer.cpp similarity.cpp utils.cpp fasta.cpp
correct.o: correct.hpp correct.cpp utils.cpp fasta.cpp
$(CC) -c $(CFLAGS) $(LIBS) correct.cpp utils.cpp fasta.cpp
clean:
rm -f *.o
rm -f $(EXEC)
rm -f *log.txt
.PHONY: all clean