-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
36 lines (25 loc) · 1011 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
35
36
OBJECTST = General.o Alphabet.o Instance.o DataSet.o Model.o Parameterisation.o MTParameterisation.o Train.o
HEADERST = General.h Alphabet.o Instance.h DataSet.h Model.h Parameterisation.h
CC = g++
CFLAGS = -g
Train : $(OBJECTST)
$(CC) $(CFLAGS) -o $@ $(OBJECTST) $(LLIBS)
mv $@ examples/secondary_structure
Train.o : Train.cpp $(HEADERST)
$(CC) -c $(CFLAGS) $*.cpp
General.o : General.cpp General.h
$(CC) -c $(CFLAGS) $*.cpp
Alphabet.o : Alphabet.cpp Alphabet.h
$(CC) -c $(CFLAGS) $*.cpp
Instance.o : Instance.cpp Instance.h General.o
$(CC) -c $(CFLAGS) $*.cpp
DataSet.o : DataSet.cpp DataSet.h General.o Alphabet.o Instance.o
$(CC) -c $(CFLAGS) $*.cpp
Parameterisation.o : Parameterisation.cpp Parameterisation.h General.o
$(CC) -c $(CFLAGS) $*.cpp
MTParameterisation.o : MTParameterisation.cpp Parameterisation.h General.o
$(CC) -c $(CFLAGS) $*.cpp
Model.o : Model.cpp Model.h Instance.o MTParameterisation.o
$(CC) -c $(CFLAGS) $*.cpp
clean:
rm *.o examples/secondary_structure/Train