-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.debian
executable file
·152 lines (101 loc) · 7.93 KB
/
Makefile.debian
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
FLAGS = -g -Wall
LIBRARYVERSION = 0:0:0
PACKAGENAME = libneurolab
IPATHS = -I/usr/include/boost
LPATHS = -L/home/jacob/software/neurolab/lib
LIBS = -lm
LIBRARY = $(DESTDIR)/usr/lib/libneurolab.so
DEFINES = -D_GNUPLOT_CALL="\"/usr/bin/gnuplot \""
OBJECTS = obj/parametric.o obj/stochastic.o obj/differentiable.o obj/processes.o obj/display.o obj/processestimator.o obj/conditionalestimator.o obj/scalarestimator.o obj/intervalestimator.o obj/matrix.o obj/ifneuron.o obj/mlneuron.o obj/synapse.o obj/wiener.o obj/function.o obj/physical.o obj/neuron.o obj/thetaneuron.o obj/noises.o obj/stochastic.o obj/dependanceestimator.o obj/seriesestimator.o obj/spikeestimator.o obj/timedependent.o obj/estimator.o obj/eventmultiplexer.o obj/eventplayer.o
TESTPROGRAMS = bin/CoupledNeurons bin/ItoVsStrat bin/ItoVsStrat2 bin/ItoVsStrat3 bin/Functions bin/NoiseTest
all: link
docs:
doxygen neurolab.doxygen
archive: clean
cd ..; tar cvvjf neurolab.tar.bz2 libneurolab/ --exclude *~ --exclude *.data --exclude *.gnuplot --exclude *.ps --exclude-vcs; cd libneurolab
install: installDocs installLib installHeaders
installDocs: docs
install -d $(DESTDIR)/usr/share/doc/neurolab/html/
install -m555 doc/html/* $(DESTDIR)/usr/share/doc/neurolab/html/
installTestProgs: $(TESTPROGRAMS)
install -d $(DESTDIR)/usr/bin/neurolab
install -m555 bin/* $(DESTDIR)/usr/bin/neurolab
installLib:
install -d $(DESTDIR)/usr/lib
libtool --mode=install install -m555 lib/libneurolab.* $(DESTDIR)/usr/lib/
libtool --finish $(DESTDIR)/usr/lib
installHeaders:
install -d $(DESTDIR)/usr/include/neurolab/
install -m555 h/* $(DESTDIR)/usr/include/neurolab/
link: $(OBJECTS)
libtool --mode=link g++ -rpath /usr/lib/ -version-info $(LIBRARYVERSION) $(IPATHS) $(LPATHS) -o lib/libneurolab.la obj/*.lo
testProgs: $(TESTPROGRAMS)
bin/NoiseTest: src/NoiseTest.cxx h/covariation.hxx $(LIBRARY)
g++ $(FLAGS) $(DEFINES) $(IPATHS) $(LPATHS) src/NoiseTest.cxx -o bin/NoiseTest $(LIBS) -lneurolab
bin/Functions: src/Functions.cxx $(LIBRARY)
g++ $(FLAGS) $(DEFINES) $(IPATHS) $(LPATHS) src/Functions.cxx -o bin/Functions $(LIBS) -lneurolab
bin/TestStratonovich: src/TestStratonovich.cxx $(LIBRARY)
g++ $(FLAGS) $(DEFINES) $(IPATHS) $(LPATHS) src/TestStratonovich.cxx -o bin/TestStratonovich $(LIBS) -lneurolab
bin/ItoVsStrat: src/ItoVsStrat.cxx $(LIBRARY)
g++ $(FLAGS) $(DEFINES) $(IPATHS) $(LPATHS) src/ItoVsStrat.cxx -o bin/ItoVsStrat $(LIBS) -lneurolab
bin/ItoVsStrat2: src/ItoVsStrat2.cxx $(LIBRARY)
g++ $(FLAGS) $(DEFINES) $(IPATHS) $(LPATHS) src/ItoVsStrat2.cxx -o bin/ItoVsStrat2 $(LIBS) -lneurolab
bin/ItoVsStrat3: src/TestStratonovich.cxx $(LIBRARY)
g++ $(FLAGS) $(DEFINES) $(IPATHS) $(LPATHS) src/TestStratonovich.cxx -o bin/ItoVsStrat3 $(LIBS) -lneurolab
bin/CoupledNeurons: src/CoupledNeurons.cxx $(LIBRARY)
g++ $(FLAGS) $(DEFINES) $(IPATHS) $(LPATHS) src/CoupledNeurons.cxx -o bin/CoupledNeurons $(LIBS) -lneurolab
# object files
obj/matrix.o: src/matrix.cxx h/matrix.hxx obj/physical.o
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/matrix.cxx -o obj/matrix.o
obj/function.o: src/function.cxx h/function.hxx
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/function.cxx -o obj/function.o
obj/display.o: src/display.cxx h/display.hxx src/function.cxx h/function.hxx
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/display.cxx -o obj/display.o
obj/processes.o: obj/differentiable.o h/processes.hxx obj/stochastic.o h/physical.hxx src/processes.cxx
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/processes.cxx -o obj/processes.o
obj/wiener.o: obj/differentiable.o h/wiener.hxx obj/stochastic.o h/physical.hxx src/wiener.cxx
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/wiener.cxx -o obj/wiener.o
obj/estimator.o: src/estimator.cxx h/estimator.hxx obj/stochastic.o h/timedependent.hxx
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/estimator.cxx -o obj/estimator.o
obj/scalarestimator.o: src/scalarestimator.cxx h/scalarestimator.hxx h/estimator.hxx h/ring.hxx obj/stochastic.o obj/matrix.o h/graph.hxx
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/scalarestimator.cxx -o obj/scalarestimator.o
obj/intervalestimator.o: src/intervalestimator.cxx h/intervalestimator.hxx h/estimator.hxx h/ring.hxx obj/stochastic.o
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/intervalestimator.cxx -o obj/intervalestimator.o
obj/processestimator.o: src/processestimator.cxx h/processestimator.hxx h/estimator.hxx h/ring.hxx obj/stochastic.o h/matrix.hxx h/graph.hxx h/physical.hxx
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/processestimator.cxx -o obj/processestimator.o
obj/dependanceestimator.o: src/dependanceestimator.cxx h/dependanceestimator.hxx h/estimator.hxx h/ring.hxx obj/stochastic.o h/matrix.hxx h/graph.hxx h/physical.hxx
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/dependanceestimator.cxx -o obj/dependanceestimator.o
obj/seriesestimator.o: src/seriesestimator.cxx h/seriesestimator.hxx h/estimator.hxx h/ring.hxx obj/stochastic.o h/matrix.hxx h/graph.hxx h/physical.hxx
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/seriesestimator.cxx -o obj/seriesestimator.o
obj/spikeestimator.o: src/spikeestimator.cxx h/spikeestimator.hxx h/estimator.hxx obj/stochastic.o h/matrix.hxx h/graph.hxx h/physical.hxx
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/spikeestimator.cxx -o obj/spikeestimator.o
obj/physical.o: h/physical.hxx src/physical.cxx
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/physical.cxx -o obj/physical.o
obj/conditionalestimator.o: src/conditionalestimator.cxx h/conditionalestimator.hxx h/estimator.hxx h/ring.hxx obj/stochastic.o h/matrix.hxx h/graph.hxx h/physical.hxx
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/conditionalestimator.cxx -o obj/conditionalestimator.o
obj/differentiable.o: h/differentiable.hxx src/differentiable.cxx obj/stochastic.o
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/differentiable.cxx -o obj/differentiable.o
obj/neuron.o: src/neuron.cxx h/neuron.hxx obj/differentiable.o obj/processes.o
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/neuron.cxx -o obj/neuron.o
obj/ifneuron.o: src/ifneuron.cxx h/ifneuron.hxx h/noises.hxx obj/neuron.o
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/ifneuron.cxx -o obj/ifneuron.o
obj/thetaneuron.o: src/thetaneuron.cxx h/thetaneuron.hxx obj/neuron.o
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/thetaneuron.cxx -o obj/thetaneuron.o
obj/mlneuron.o: src/mlneuron.cxx h/mlneuron.hxx h/noises.hxx obj/neuron.o
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/mlneuron.cxx -o obj/mlneuron.o
obj/synapse.o: src/synapse.cxx h/synapse.hxx obj/differentiable.o obj/parametric.o
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/synapse.cxx -o obj/synapse.o
obj/noises.o: src/noises.cxx h/noises.hxx obj/stochastic.o obj/matrix.o
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/noises.cxx -o obj/noises.o
obj/stochastic.o: h/stochastic.hxx src/stochastic.cxx
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/stochastic.cxx -o obj/stochastic.o
obj/parametric.o: h/parametric.hxx src/parametric.cxx
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/parametric.cxx -o obj/parametric.o
obj/timedependent.o: h/timedependent.hxx
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/timedependent.cxx -o obj/timedependent.o
obj/eventmultiplexer.o: h/eventmultiplexer.hxx src/eventmultiplexer.cxx
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/eventmultiplexer.cxx -o obj/eventmultiplexer.o
obj/eventplayer.o: h/eventplayer.hxx src/eventplayer.cxx
libtool --mode=compile g++ -c $(FLAGS) $(DEFINES) $(IPATHS) src/eventplayer.cxx -o obj/eventplayer.o
clean:
rm -r obj/*; rm bin/*; rm lib/*; rm lib/.libs/*; yes | rm doc/html/*; yes | rm doc/latex/*; echo "";