-
Notifications
You must be signed in to change notification settings - Fork 166
/
Makefile
96 lines (67 loc) · 3.07 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
CC=g++
LINK=-lxerces-c -lm
FLAGS = -O3 -Wno-unused-result #-I/path/to/boost/
OBJFEAS=symfeatures.o featureson.o online.o
OBJMUESTRA=sample.o stroke.o
OBJPARSE=seshat.o meparser.o gparser.o grammar.o production.o symrec.o duration.o segmentation.o sparel.o gmm.o
OBJTABLA=tablecyk.o cellcyk.o hypothesis.o logspace.o
OBJRNNLIB=Random.o DataExporter.o WeightContainer.o ClassificationLayer.o Layer.o Mdrnn.o Optimiser.o
RNNLIBHEADERS=rnnlib4seshat/DataSequence.hpp rnnlib4seshat/NetcdfDataset.hpp rnnlib4seshat/Mdrnn.hpp rnnlib4seshat/MultilayerNet.hpp rnnlib4seshat/Rprop.hpp rnnlib4seshat/SteepestDescent.hpp rnnlib4seshat/Trainer.hpp rnnlib4seshat/WeightContainer.hpp
OBJS=$(OBJFEAS) $(OBJMUESTRA) $(OBJPARSE) $(OBJTABLA) $(OBJRNNLIB)
seshat: $(OBJS)
$(CC) -o seshat $(OBJS) $(FLAGS) $(LINK)
seshat.o: seshat.cc grammar.o sample.o meparser.o
$(CC) -c seshat.cc $(FLAGS)
production.o: production.h production.cc symrec.o
$(CC) -c production.cc $(FLAGS)
grammar.o: grammar.h grammar.cc production.o gparser.o symrec.o
$(CC) -c grammar.cc $(FLAGS)
meparser.o: meparser.h meparser.cc grammar.o production.o symrec.o tablecyk.o cellcyk.o logspace.o duration.o segmentation.o sparel.o sample.o hypothesis.o
$(CC) -c meparser.cc $(FLAGS)
gparser.o: gparser.h gparser.cc
$(CC) -c gparser.cc $(FLAGS)
sample.o: sample.h sample.cc tablecyk.o cellcyk.o stroke.o grammar.o
$(CC) -c sample.cc $(FLAGS)
symrec.o: symrec.h symrec.cc symfeatures.o $(RNNLIBHEADERS)
$(CC) -c symrec.cc $(FLAGS)
duration.o: duration.h duration.cc symrec.o
$(CC) -c duration.cc $(FLAGS)
segmentation.o: segmentation.h segmentation.cc cellcyk.o sample.o gmm.o
$(CC) -c segmentation.cc $(FLAGS)
tablecyk.o: tablecyk.h tablecyk.cc cellcyk.o hypothesis.o
$(CC) -c tablecyk.cc $(FLAGS)
cellcyk.o: cellcyk.h cellcyk.cc hypothesis.o
$(CC) -c cellcyk.cc $(FLAGS)
hypothesis.o: hypothesis.h hypothesis.cc production.o grammar.o
$(CC) -c hypothesis.cc $(FLAGS)
logspace.o: logspace.h logspace.cc cellcyk.o
$(CC) -c logspace.cc $(FLAGS)
sparel.o: sparel.h sparel.cc hypothesis.o cellcyk.o gmm.o sample.o
$(CC) -c sparel.cc $(FLAGS)
gmm.o: gmm.cc gmm.h
$(CC) -c gmm.cc $(FLAGS)
stroke.o: stroke.cc stroke.h
$(CC) -c stroke.cc $(FLAGS)
symfeatures.o: symfeatures.cc online.o featureson.o
$(CC) -c symfeatures.cc $(FLAGS)
featureson.o: featureson.cc featureson.h online.o
$(CC) -c featureson.cc $(FLAGS)
online.o: online.cc online.h
$(CC) -c online.cc $(FLAGS)
#rnnlib4seshat
Random.o: rnnlib4seshat/Random.cpp
$(CC) -c rnnlib4seshat/Random.cpp $(FLAGS)
DataExporter.o: rnnlib4seshat/DataExporter.cpp
$(CC) -c rnnlib4seshat/DataExporter.cpp $(FLAGS)
WeightContainer.o: rnnlib4seshat/WeightContainer.cpp
$(CC) -c rnnlib4seshat/WeightContainer.cpp $(FLAGS)
ClassificationLayer.o: rnnlib4seshat/ClassificationLayer.cpp
$(CC) -c rnnlib4seshat/ClassificationLayer.cpp $(FLAGS)
Layer.o: rnnlib4seshat/Layer.cpp
$(CC) -c rnnlib4seshat/Layer.cpp $(FLAGS)
Mdrnn.o: rnnlib4seshat/Mdrnn.cpp
$(CC) -c rnnlib4seshat/Mdrnn.cpp $(FLAGS)
Optimiser.o: rnnlib4seshat/Optimiser.cpp
$(CC) -c rnnlib4seshat/Optimiser.cpp $(FLAGS)
clean:
rm -f *.o *~ \#*\#