forked from douglasgscofield/sparseMEM-big
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
31 lines (23 loc) · 797 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
FLAGS = -O3 -DSIXTYFOURBITS -pthread
SRC = mummer.cpp qsufsort.c sparseSA.cpp fasta.cpp
all: mummer create_mummer_index
create_mummer_index: create_mummer_index.o qsufsort.o sparseSA.o fasta.o /usr/lib/libboost_serialization.a
g++ -lpthread $(FLAGS) $^ -o $@
mummer: mummer.o qsufsort.o sparseSA.o fasta.o /usr/lib/libboost_serialization.a
g++ -lpthread $(FLAGS) $^ -o $@
.cpp.o:
g++ $(FLAGS) -Wall -c $<
.c.o:
gcc $(FLAGS) -Wall -c $<
# .PHONY assures clean is exected even if there is a file "./clean" in
# the directory. The same for doc.
.PHONY: clean doc
doc:
doxygen
clean:
rm -f *.o *~ .depend mummer
# Create all the dependencies between the source files.
.depend:
g++ -MM $(SRC) > .depend
# The - prevents make from complaining about a missing .depend
-include .depend