-
Notifications
You must be signed in to change notification settings - Fork 28
/
makefile
165 lines (119 loc) · 8.44 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
#
# Top Level Makefile for GPLVM
# Version 0.11
# July 6, 2005
# Dec 23, 2008
# dependencies created with gcc -MM XXX.cpp
include make.linux
all: gplvm ivm gp libgp$(LIBSEXT) libgp$(LIBDEXT)
gplvm: gplvm.o CClctrl.o CGplvm.o CMatrix.o ndlfortran.o CNoise.o ndlutil.o ndlstrutil.o CTransform.o COptimisable.o CKern.o CDist.o ndlassert.o
$(LD) ${XLINKERFLAGS} -o gplvm gplvm.o CGplvm.o CClctrl.o CMatrix.o ndlfortran.o CNoise.o ndlutil.o ndlstrutil.o CTransform.o COptimisable.o CKern.o CDist.o ndlassert.o $(LDFLAGS)
gplvm.o: gplvm.cpp gplvm.h ndlexceptions.h ndlstrutil.h CMatrix.h \
ndlassert.h CNdlInterfaces.h ndlutil.h ndlfortran.h lapack.h CKern.h \
CTransform.h CDataModel.h CDist.h CGplvm.h CMltools.h COptimisable.h \
CNoise.h CClctrl.h
$(CC) -c gplvm.cpp -o gplvm.o $(CCFLAGS)
ivm: ivm.o CClctrl.o CIvm.o CMatrix.o ndlfortran.o CNoise.o ndlutil.o ndlstrutil.o CTransform.o COptimisable.o CKern.o CDist.o ndlassert.o
$(LD) ${XLINKERFLAGS} -o ivm ivm.o CClctrl.o CIvm.o CMatrix.o ndlfortran.o CNoise.o ndlutil.o ndlstrutil.o CTransform.o COptimisable.o CKern.o CDist.o ndlassert.o $(LDFLAGS)
ivm.o: ivm.cpp CIvm.h CKern.h CMatrix.h ivm.h CClctrl.h
$(CC) -c ivm.cpp -o ivm.o $(CCFLAGS)
gp: gp.o CClctrl.o CGp.o CMatrix.o ndlfortran.o CNoise.o ndlutil.o ndlstrutil.o CTransform.o COptimisable.o CKern.o CDist.o ndlassert.o
$(LD) ${XLINKERFLAGS} -o gp gp.o CGp.o CClctrl.o CMatrix.o ndlfortran.o CNoise.o ndlutil.o ndlstrutil.o CTransform.o COptimisable.o CKern.o CDist.o ndlassert.o $(LDFLAGS)
libgp$(LIBSEXT): CClctrl.o CGp.o CMatrix.o ndlfortran.o CNoise.o ndlutil.o ndlstrutil.o CTransform.o COptimisable.o CKern.o CDist.o ndlassert.o
$(LIBSCOMMAND) libgp$(LIBSEXT) CGp.o CClctrl.o CMatrix.o ndlfortran.o CNoise.o ndlutil.o ndlstrutil.o CTransform.o COptimisable.o CKern.o CDist.o ndlassert.o
libgp$(LIBDEXT): CClctrl.o CGp.o CMatrix.o ndlfortran.o CNoise.o ndlutil.o ndlstrutil.o CTransform.o COptimisable.o CKern.o CDist.o ndlassert.o
$(LIBDCOMMAND) libgp$(LIBDEXT) CGp.o CClctrl.o CMatrix.o ndlfortran.o CNoise.o ndlutil.o ndlstrutil.o CTransform.o COptimisable.o CKern.o CDist.o ndlassert.o
gp.o: gp.cpp gp.h ndlexceptions.h ndlstrutil.h CMatrix.h ndlassert.h \
CNdlInterfaces.h ndlutil.h ndlfortran.h lapack.h CKern.h CTransform.h \
CDataModel.h CDist.h CGp.h CMltools.h COptimisable.h CNoise.h CClctrl.h
$(CC) -c gp.cpp -o gp.o $(CCFLAGS)
# To compile tests, the MATLAB interface must be enabled (i.e. define _NDLMATLAB)
tests: testDist testGp testIvm testKern testMatrix testMltools testNdlutil testNoise testTransform
testDist: testDist.o CMatrix.o ndlfortran.o CTransform.o COptimisable.o CDist.o ndlutil.o ndlstrutil.o CClctrl.o
$(LD) ${XLINKERFLAGS} -o testDist testDist.o CMatrix.o ndlfortran.o CTransform.o COptimisable.o CDist.o ndlutil.o ndlstrutil.o CClctrl.o $(LDFLAGS)
testDist.o: testDist.cpp CDist.h CTransform.h CMatrix.h CClctrl.h
$(CC) -c testDist.cpp -o testDist.o $(CCFLAGS)
testGp: testGp.o CGp.o CMatrix.o ndlfortran.o CNoise.o ndlutil.o ndlstrutil.o CTransform.o COptimisable.o CKern.o CDist.o CClctrl.o CMltools.o
$(LD) ${XLINKERFLAGS} -o testGp testGp.o CGp.o CMatrix.o ndlfortran.o CNoise.o ndlutil.o ndlstrutil.o CTransform.o COptimisable.o CKern.o CDist.o CClctrl.o CMltools.o $(LDFLAGS)
testGp.o: testGp.cpp CGp.h CKern.h CMatrix.h CClctrl.h
$(CC) -c testGp.cpp -o testGp.o $(CCFLAGS)
testIvm: testIvm.o CIvm.o CMatrix.o ndlfortran.o CNoise.o ndlutil.o ndlstrutil.o CTransform.o COptimisable.o CKern.o CDist.o CClctrl.o CMltools.o
$(LD) ${XLINKERFLAGS} -o testIvm testIvm.o CIvm.o CMatrix.o ndlfortran.o CNoise.o ndlutil.o ndlstrutil.o CTransform.o COptimisable.o CKern.o CDist.o CClctrl.o CMltools.o $(LDFLAGS)
testIvm.o: testIvm.cpp CIvm.h CKern.h CMatrix.h CClctrl.h
$(CC) -c testIvm.cpp -o testIvm.o $(CCFLAGS)
testKern: testKern.o CMatrix.o ndlfortran.o CKern.o CTransform.o COptimisable.o CDist.o ndlutil.o ndlstrutil.o CClctrl.o
$(LD) ${XLINKERFLAGS} -o testKern testKern.o CMatrix.o ndlfortran.o CKern.o CTransform.o COptimisable.o CDist.o ndlutil.o ndlstrutil.o CClctrl.o $(LDFLAGS)
testKern.o: testKern.cpp CKern.h CDist.h CTransform.h CMatrix.h CClctrl.h
$(CC) -c testKern.cpp -o testKern.o $(CCFLAGS)
testMatrix: testMatrix.o CMatrix.o ndlfortran.o ndlstrutil.o ndlutil.o CClctrl.o
$(LD) ${XLINKERFLAGS} -o testMatrix testMatrix.o CMatrix.o ndlfortran.o ndlstrutil.o ndlutil.o CClctrl.o $(LDFLAGS)
testMatrix.o: testMatrix.cpp CMatrix.h CClctrl.h
$(CC) -c testMatrix.cpp -o testMatrix.o $(CCFLAGS)
testMltools: testMltools.o CMltools.o CMatrix.o ndlfortran.o ndlutil.o ndlstrutil.o CTransform.o COptimisable.o CClctrl.o
$(LD) ${XLINKERFLAGS} -o testMltools testMltools.o CMltools.o CMatrix.o ndlfortran.o ndlutil.o ndlstrutil.o CTransform.o COptimisable.o CClctrl.o $(LDFLAGS)
testMltools.o: testMltools.cpp CMltools.h CKern.h CMatrix.h CClctrl.h
$(CC) -c testMltools.cpp -o testMltools.o $(CCFLAGS)
testNdlutil: testNdlutil.o ndlutil.o ndlstrutil.o CMatrix.o ndlfortran.o CClctrl.o
$(LD) ${XLINKERFLAGS} -o testNdlutil testNdlutil.o ndlutil.o ndlstrutil.o CMatrix.o ndlfortran.o CClctrl.o $(LDFLAGS)
testNdlutil.o: testNdlutil.cpp ndlutil.h CClctrl.h
$(CC) -c testNdlutil.cpp -o testNdlutil.o $(CCFLAGS)
testNoise: testNoise.o CMatrix.o ndlfortran.o CNoise.o ndlutil.o ndlstrutil.o CTransform.o COptimisable.o CDist.o CClctrl.o
$(LD) ${XLINKERFLAGS} -o testNoise testNoise.o CMatrix.o ndlfortran.o CNoise.o ndlutil.o ndlstrutil.o CTransform.o COptimisable.o CDist.o CClctrl.o $(LDFLAGS)
testNoise.o: testNoise.cpp CNoise.h CMatrix.h CClctrl.h
$(CC) -c testNoise.cpp -o testNoise.o $(CCFLAGS)
testTransform: testTransform.o CMatrix.o ndlfortran.o CTransform.o ndlutil.o ndlstrutil.o CClctrl.o
$(LD) ${XLINKERFLAGS} -o testTransform testTransform.o CMatrix.o ndlfortran.o CTransform.o ndlutil.o ndlstrutil.o CClctrl.o $(LDFLAGS)
testTransform.o: testTransform.cpp CTransform.h CMatrix.h CClctrl.h
$(CC) -c testTransform.cpp -o testTransform.o $(CCFLAGS)
CClctrl.o: CClctrl.cpp CClctrl.h ndlstrutil.h ndlexceptions.h ndlutil.h \
ndlassert.h ndlfortran.h CMatrix.h CNdlInterfaces.h lapack.h
$(CC) -c CClctrl.cpp -o CClctrl.o $(CCFLAGS)
CGplvm.o: CGplvm.cpp CGplvm.h CMltools.h ndlassert.h ndlexceptions.h \
ndlstrutil.h COptimisable.h CMatrix.h CNdlInterfaces.h ndlutil.h \
ndlfortran.h lapack.h CKern.h CTransform.h CDataModel.h CDist.h \
CNoise.h
$(CC) -c CGplvm.cpp -o CGplvm.o $(CCFLAGS)
CNoise.o: CNoise.cpp CNoise.h ndlexceptions.h ndlutil.h ndlassert.h \
ndlfortran.h ndlstrutil.h CMatrix.h CNdlInterfaces.h lapack.h \
CTransform.h COptimisable.h CDist.h CKern.h CDataModel.h
$(CC) -c CNoise.cpp -o CNoise.o $(CCFLAGS)
CKern.o: CKern.cpp CKern.h ndlassert.h ndlexceptions.h CTransform.h \
CMatrix.h CNdlInterfaces.h ndlstrutil.h ndlutil.h ndlfortran.h lapack.h \
CDataModel.h CDist.h
$(CC) -c CKern.cpp -o CKern.o $(CCFLAGS)
CTransform.o: CTransform.cpp CTransform.h CMatrix.h ndlassert.h \
ndlexceptions.h CNdlInterfaces.h ndlstrutil.h ndlutil.h ndlfortran.h \
lapack.h
$(CC) -c CTransform.cpp -o CTransform.o $(CCFLAGS)
COptimisable.o: COptimisable.cpp COptimisable.h CMatrix.h ndlassert.h \
ndlexceptions.h CNdlInterfaces.h ndlstrutil.h ndlutil.h ndlfortran.h \
lapack.h
$(CC) -c COptimisable.cpp -o COptimisable.o $(CCFLAGS)
CDist.o: CDist.cpp CDist.h CMatrix.h ndlassert.h ndlexceptions.h \
CNdlInterfaces.h ndlstrutil.h ndlutil.h ndlfortran.h lapack.h \
CTransform.h
$(CC) -c CDist.cpp -o CDist.o $(CCFLAGS)
CMatrix.o: CMatrix.cpp CMatrix.h ndlassert.h ndlexceptions.h \
CNdlInterfaces.h ndlstrutil.h ndlutil.h ndlfortran.h lapack.h
$(CC) -c CMatrix.cpp -o CMatrix.o $(CCFLAGS)
CGp.o: CGp.cpp CGp.h CMltools.h ndlassert.h ndlexceptions.h \
ndlstrutil.h COptimisable.h CMatrix.h CNdlInterfaces.h ndlutil.h \
ndlfortran.h lapack.h CKern.h CTransform.h CDataModel.h CDist.h \
CNoise.h
$(CC) -c CGp.cpp -o CGp.o $(CCFLAGS)
CIvm.o: CIvm.cpp CIvm.h CMltools.h ndlassert.h ndlexceptions.h \
ndlstrutil.h COptimisable.h CMatrix.h CNdlInterfaces.h ndlutil.h \
ndlfortran.h lapack.h CKern.h CTransform.h CDataModel.h CDist.h \
CNoise.h
$(CC) -c CIvm.cpp -o CIvm.o $(CCFLAGS)
ndlutil.o: ndlutil.cpp ndlutil.h ndlassert.h ndlexceptions.h ndlfortran.h
$(CC) -c ndlutil.cpp -o ndlutil.o $(CCFLAGS)
ndlstrutil.o: ndlstrutil.cpp ndlstrutil.h ndlexceptions.h
$(CC) -c ndlstrutil.cpp -o ndlstrutil.o $(CCFLAGS)
ndlassert.o: ndlassert.cpp ndlassert.h ndlexceptions.h
$(CC) -c ndlassert.cpp -o ndlassert.o $(CCFLAGS)
# Collected FORTRAN utilities.
ndlfortran.o: ndlfortran.f
$(FC) -c ndlfortran.f -o ndlfortran.o $(FCFLAGS)
clean:
rm *.o