-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (45 loc) · 1.24 KB
/
Makefile
File metadata and controls
59 lines (45 loc) · 1.24 KB
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
55
56
57
58
CC=gcc
CPP=g++
OPTIMISER = -O3
CPPFLAGS = $(OPTIMISER) -std=c++14 -Wno-all -fmessage-length=0 -msse2 -mfpmath=sse
CFLAGS = $(OPTIMISER) -std=c99 -Wno-all
#CFLAGS = -g
# C Code
LIB = -lm
OBJS = utils.o hmm.o matrices.o
HDR = utils.h hmm.h matrices.h
INC = -I/usr/local/include
# CPP code
CPPOBJS = Cluster.o Tree.o Random.o Divvier.o bionj.o Sequence.o
CPPHDR = Cluster.h Tree.h Random.h Divvier.h Sequence.h
all : fastZorro
# Zorro
utils.o : utils.c utils.h
$(CC) $(CFLAGS) $(INC) -c utils.c
hmm.o : hmm.c hmm.h
$(CC) $(CFLAGS) $(INC) -c hmm.c
matrices.o : matrices.c matrices.h
$(CC) $(CFLAGS) $(INC) -c matrices.c
fastZorro : $(CPPOBJS) $(OBJS) $(HDR)
$(CPP) $(CPPFLAGS) $(INC) $(LIB) -o divvier $(OBJS) $(CPPOBJS)
#Cluster
Cluster.o : Cluster.cpp Cluster.h
$(CPP) $(CPPFLAGS) $(INC) -c Cluster.cpp
Tree.o : Tree.cpp Tree.h
$(CPP) $(CPPFLAGS) $(INC) -c Tree.cpp
Random.o : Random.cpp Random.h
$(CPP) $(CPPFLAGS) $(INC) -c Random.cpp
Sequence.o : Sequence.cpp Sequence.h
$(CPP) $(CPPFLAGS) $(INC) -c Sequence.cpp
#bionj
bionj.o : bionj.cxx
$(CPP) $(CPPFLAGS) $(INC) -c bionj.cxx
# Divvier
Divvier.o : Divvier.cpp Divvier.h
$(CPP) $(CPPFLAGS) $(INC) -c Divvier.cpp
clean:
rm -f $(OBJS) $(CPPOBJS)
rm -f divvier
rm -f core
rm -f *~
rm -f a.out