1 | lib_LTLIBRARIES = libariba.la
|
---|
2 | libariba_la_SOURCES =
|
---|
3 |
|
---|
4 | # compiler flags ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
5 | # read the autotools book 11.4 for setting the versioning number
|
---|
6 | # this is different from normal versioning schemes and important
|
---|
7 | # to set correctly as the runtime linker chooses the correct lib
|
---|
8 | # depending on the versioning information here! This is not the
|
---|
9 | # project version number!!
|
---|
10 |
|
---|
11 | libariba_la_LDFLAGS = -version-info 0:0:0
|
---|
12 |
|
---|
13 | # compiler flags ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
14 |
|
---|
15 | AM_CPPFLAGS = -DLINUX -D_LINUX -I../ -D_REENTRANT -DSCTP_KERN
|
---|
16 | AM_CPPFLAGS += $(BOOST_CPPFLAGS)
|
---|
17 |
|
---|
18 | if DEBUG
|
---|
19 | AM_CPPFLAGS += -ggdb -DDEBUG -D_DEBUG -O0
|
---|
20 | endif
|
---|
21 |
|
---|
22 | if PROFILING
|
---|
23 | AM_CPPFLAGS += -pg
|
---|
24 | endif
|
---|
25 |
|
---|
26 | if OMNET
|
---|
27 | AM_CPPFLAGS += -fPIC -DUNDERLAY_OMNET
|
---|
28 | endif
|
---|
29 |
|
---|
30 | # linker flags ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
31 |
|
---|
32 | AM_LDFLAGS = $(BOOST_THREAD_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_REGEX_LDFLAGS)
|
---|
33 | LIBS += $(BOOST_THREAD_LIBS) $(BOOST_SYSTEM_LIBS) $(BOOST_REGEX_LIBS)
|
---|
34 |
|
---|
35 | if PROFILING
|
---|
36 | AM_LDFLAGS += -pg
|
---|
37 | endif
|
---|
38 |
|
---|
39 | if OMNET
|
---|
40 | AM_LDFLAGS += -shared -rdynamic
|
---|
41 | endif
|
---|
42 |
|
---|
43 | # sources and subdirs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
44 |
|
---|
45 | #tidy interface
|
---|
46 | libariba_la_SOURCES += \
|
---|
47 | AribaModule.cpp \
|
---|
48 | AribaModule.h \
|
---|
49 | TidyCommunicationListener.cpp \
|
---|
50 | TidyCommunicationListener.h \
|
---|
51 | Identifiers.cpp \
|
---|
52 | Identifiers.h \
|
---|
53 | LinkProperties.cpp \
|
---|
54 | LinkProperties.h \
|
---|
55 | TidyMessage.cpp \
|
---|
56 | TidyMessage.h \
|
---|
57 | DataMessage.cpp \
|
---|
58 | DataMessage.h \
|
---|
59 | Module.cpp \
|
---|
60 | Module.h \
|
---|
61 | Name.cpp \
|
---|
62 | Name.h \
|
---|
63 | Node.cpp \
|
---|
64 | Node.h \
|
---|
65 | NodeListener.cpp \
|
---|
66 | NodeListener.h \
|
---|
67 | SpoVNetProperties.cpp \
|
---|
68 | SpoVNetProperties.h
|
---|
69 |
|
---|
70 | #communication
|
---|
71 | libariba_la_SOURCES += \
|
---|
72 | communication/BaseCommunication.cpp \
|
---|
73 | communication/BaseCommunication.h \
|
---|
74 | communication/CommunicationEvents.cpp \
|
---|
75 | communication/CommunicationEvents.h \
|
---|
76 | communication/EndpointDescriptor.cpp \
|
---|
77 | communication/EndpointDescriptor.h
|
---|
78 |
|
---|
79 | #communication :: messages
|
---|
80 | libariba_la_SOURCES += \
|
---|
81 | communication/messages/AribaBaseMsg.cpp \
|
---|
82 | communication/messages/AribaBaseMsg.h
|
---|
83 |
|
---|
84 | #communication :: modules
|
---|
85 | libariba_la_SOURCES += \
|
---|
86 | communication/modules/modules.h \
|
---|
87 | communication/modules/_namespace.h
|
---|
88 |
|
---|
89 | #communication :: modules :: network
|
---|
90 | libariba_la_SOURCES += \
|
---|
91 | communication/modules/network/NetworkLocator.cpp \
|
---|
92 | communication/modules/network/NetworkLocator.h \
|
---|
93 | communication/modules/network/NetworkProtocol.cpp \
|
---|
94 | communication/modules/network/NetworkProtocol.h
|
---|
95 |
|
---|
96 | #communication :: modules :: network :: ip
|
---|
97 | libariba_la_SOURCES += \
|
---|
98 | communication/modules/network/ip/IPv4Locator.cpp \
|
---|
99 | communication/modules/network/ip/IPv4Locator.h \
|
---|
100 | communication/modules/network/ip/IPv4NetworkProtocol.cpp \
|
---|
101 | communication/modules/network/ip/IPv4NetworkProtocol.h
|
---|
102 |
|
---|
103 | if OMNET
|
---|
104 | #communication :: modules :: network :: omnet
|
---|
105 | libariba_la_SOURCES += \
|
---|
106 | communication/modules/network/omnet/OmnetNetworkProtocol.cpp \
|
---|
107 | communication/modules/network/omnet/OmnetNetworkProtocol.h
|
---|
108 | endif
|
---|
109 |
|
---|
110 | #communication :: modules :: transport
|
---|
111 | libariba_la_SOURCES += \
|
---|
112 | communication/modules/transport/TransportLocator.cpp \
|
---|
113 | communication/modules/transport/TransportLocator.h \
|
---|
114 | communication/modules/transport/TransportProtocol.cpp \
|
---|
115 | communication/modules/transport/TransportProtocol.h
|
---|
116 |
|
---|
117 | if OMNET
|
---|
118 | #communication :: modules :: transport :: omnet
|
---|
119 | libariba_la_SOURCES += \
|
---|
120 | communication/modules/transport/omnet/AribaOmnetMessage_m.cc \
|
---|
121 | communication/modules/transport/omnet/AribaOmnetMessage_m.h \
|
---|
122 | communication/modules/transport/omnet/AribaOmnetModule.cpp \
|
---|
123 | communication/modules/transport/omnet/AribaOmnetModule.h
|
---|
124 | endif
|
---|
125 |
|
---|
126 | if OMNET
|
---|
127 | else
|
---|
128 | #communication :: modules :: transport :: protlib
|
---|
129 | libariba_la_SOURCES += \
|
---|
130 | communication/modules/transport/protlib/timer_module.cpp \
|
---|
131 | communication/modules/transport/protlib/threadsafe_db.cpp \
|
---|
132 | communication/modules/transport/protlib/address.cpp \
|
---|
133 | communication/modules/transport/protlib/ie.cpp \
|
---|
134 | communication/modules/transport/protlib/tp_over_tcp.cpp \
|
---|
135 | communication/modules/transport/protlib/setuid.cpp \
|
---|
136 | communication/modules/transport/protlib/tp.cpp \
|
---|
137 | communication/modules/transport/protlib/connectionmap_uds.cpp \
|
---|
138 | communication/modules/transport/protlib/logfile.cpp \
|
---|
139 | communication/modules/transport/protlib/timer.cpp \
|
---|
140 | communication/modules/transport/protlib/connectionmap.cpp \
|
---|
141 | communication/modules/transport/protlib/fqueue.cpp \
|
---|
142 | communication/modules/transport/protlib/threads.cpp \
|
---|
143 | communication/modules/transport/protlib/messages.cpp \
|
---|
144 | communication/modules/transport/protlib/queuemanager.cpp \
|
---|
145 | communication/modules/transport/protlib/network_message.cpp \
|
---|
146 | communication/modules/transport/protlib/configuration.cpp \
|
---|
147 | communication/modules/transport/protlib/tp_over_uds.cpp \
|
---|
148 | communication/modules/transport/protlib/tp_over_udp.cpp \
|
---|
149 | communication/modules/transport/protlib/tp_over_tls_tcp.cpp \
|
---|
150 | communication/modules/transport/protlib/fastqueue.c \
|
---|
151 | communication/modules/transport/protlib/eclock_gettime.c \
|
---|
152 | communication/modules/transport/protlib/testqueue.c \
|
---|
153 | communication/modules/transport/protlib/tp_over_uds.h \
|
---|
154 | communication/modules/transport/protlib/threadsafe_db.h \
|
---|
155 | communication/modules/transport/protlib/configuration.h \
|
---|
156 | communication/modules/transport/protlib/ie.h \
|
---|
157 | communication/modules/transport/protlib/llhashers.h \
|
---|
158 | communication/modules/transport/protlib/fqueue.h \
|
---|
159 | communication/modules/transport/protlib/assocdata_uds.h \
|
---|
160 | communication/modules/transport/protlib/address.h \
|
---|
161 | communication/modules/transport/protlib/logfile.h \
|
---|
162 | communication/modules/transport/protlib/timer.h \
|
---|
163 | communication/modules/transport/protlib/queuemanager.h \
|
---|
164 | communication/modules/transport/protlib/messages.h \
|
---|
165 | communication/modules/transport/protlib/assocdata.h \
|
---|
166 | communication/modules/transport/protlib/protlib_types.h \
|
---|
167 | communication/modules/transport/protlib/tp_over_tcp.h \
|
---|
168 | communication/modules/transport/protlib/tp.h \
|
---|
169 | communication/modules/transport/protlib/threads.h \
|
---|
170 | communication/modules/transport/protlib/connectionmap.h \
|
---|
171 | communication/modules/transport/protlib/timer_module.h \
|
---|
172 | communication/modules/transport/protlib/fastqueue.h \
|
---|
173 | communication/modules/transport/protlib/tperror.h \
|
---|
174 | communication/modules/transport/protlib/tp_over_tls_tcp.h \
|
---|
175 | communication/modules/transport/protlib/network_message.h \
|
---|
176 | communication/modules/transport/protlib/tp_over_udp.h \
|
---|
177 | communication/modules/transport/protlib/setuid.h \
|
---|
178 | communication/modules/transport/protlib/cleanuphandler.h \
|
---|
179 | communication/modules/transport/protlib/connectionmap_uds.h
|
---|
180 | endif
|
---|
181 |
|
---|
182 | if OMNET
|
---|
183 | else
|
---|
184 | #communication :: modules :: transport :: tcp
|
---|
185 | libariba_la_SOURCES += \
|
---|
186 | communication/modules/transport/tcp/TCPTransport.cpp \
|
---|
187 | communication/modules/transport/tcp/TCPTransport.h \
|
---|
188 | communication/modules/transport/tcp/TCPTransportLocator.cpp \
|
---|
189 | communication/modules/transport/tcp/TCPTransportLocator.h
|
---|
190 | endif
|
---|
191 |
|
---|
192 | #communication :: networkinfo
|
---|
193 | libariba_la_SOURCES += \
|
---|
194 | communication/networkinfo/AddressInformation.cpp \
|
---|
195 | communication/networkinfo/AddressInformation.h \
|
---|
196 | communication/networkinfo/NetworkChangeDetection.cpp \
|
---|
197 | communication/networkinfo/NetworkChangeDetection.h \
|
---|
198 | communication/networkinfo/NetworkChangeInterface.h \
|
---|
199 | communication/networkinfo/NetworkInterface.h \
|
---|
200 | communication/networkinfo/NetworkInformation.cpp \
|
---|
201 | communication/networkinfo/NetworkInformation.h \
|
---|
202 | communication/networkinfo/NetworkInterface.cpp
|
---|
203 |
|
---|
204 | #interface
|
---|
205 | libariba_la_SOURCES += \
|
---|
206 | interface/UnderlayAbstraction.cpp \
|
---|
207 | interface/UnderlayAbstraction.h \
|
---|
208 | interface/AribaContext.cpp \
|
---|
209 | interface/AribaContext.h \
|
---|
210 | interface/ServiceInterface.cpp \
|
---|
211 | interface/ServiceInterface.h
|
---|
212 |
|
---|
213 | #overlay
|
---|
214 | libariba_la_SOURCES += \
|
---|
215 | overlay/BaseOverlay.cpp \
|
---|
216 | overlay/BaseOverlay.h \
|
---|
217 | overlay/OverlayEvents.cpp \
|
---|
218 | overlay/OverlayEvents.h
|
---|
219 |
|
---|
220 | #overlay :: messages
|
---|
221 | libariba_la_SOURCES += \
|
---|
222 | overlay/messages/JoinReply.cpp \
|
---|
223 | overlay/messages/JoinReply.h \
|
---|
224 | overlay/messages/JoinRequest.cpp \
|
---|
225 | overlay/messages/JoinRequest.h \
|
---|
226 | overlay/messages/OverlayMsg.cpp \
|
---|
227 | overlay/messages/OverlayMsg.h
|
---|
228 |
|
---|
229 | #overlay :: modules
|
---|
230 | libariba_la_SOURCES += \
|
---|
231 | overlay/modules/OverlayStructureEvents.cpp \
|
---|
232 | overlay/modules/OverlayStructureEvents.h \
|
---|
233 | overlay/modules/OverlayFactory.cpp \
|
---|
234 | overlay/modules/OverlayFactory.h \
|
---|
235 | overlay/modules/OverlayInterface.cpp \
|
---|
236 | overlay/modules/OverlayInterface.h
|
---|
237 |
|
---|
238 | #overlay :: modules :: chord
|
---|
239 | # libariba_la_SOURCES += \
|
---|
240 | # overlay/modules/chord/ChordSuccessorList.h \
|
---|
241 | # overlay/modules/chord/Chord.h \
|
---|
242 | # overlay/modules/chord/ChordFingerTable.h \
|
---|
243 | # overlay/modules/chord/ChordSuccessorList.cc \
|
---|
244 | # overlay/modules/chord/Chord.cc \
|
---|
245 | # overlay/modules/chord/ChordFingerTable.cc
|
---|
246 |
|
---|
247 | #overlay :: modules :: onehop
|
---|
248 | libariba_la_SOURCES += \
|
---|
249 | overlay/modules/onehop/OneHop.cpp \
|
---|
250 | overlay/modules/onehop/OneHop.h \
|
---|
251 | overlay/modules/onehop/messages/OneHopMessage.cpp \
|
---|
252 | overlay/modules/onehop/messages/OneHopMessage.h \
|
---|
253 | overlay/modules/onehop/messages/NodeListingRequest.cpp \
|
---|
254 | overlay/modules/onehop/messages/NodeListingRequest.h \
|
---|
255 | overlay/modules/onehop/messages/NodeListingReply.cpp \
|
---|
256 | overlay/modules/onehop/messages/NodeListingReply.h
|
---|
257 |
|
---|
258 | #utility
|
---|
259 | libariba_la_SOURCES += \
|
---|
260 | utility/types.h \
|
---|
261 | utility/messages.h \
|
---|
262 | utility/serialization.h
|
---|
263 |
|
---|
264 | #utility :: configuration
|
---|
265 | libariba_la_SOURCES += \
|
---|
266 | utility/configuration/ConfigFile.cpp \
|
---|
267 | utility/configuration/ConfigFile.h \
|
---|
268 | utility/configuration/Configuration.cpp \
|
---|
269 | utility/configuration/Configuration.h
|
---|
270 |
|
---|
271 | #utility :: internal
|
---|
272 | libariba_la_SOURCES += \
|
---|
273 | utility/internal/Utilities.hpp
|
---|
274 |
|
---|
275 | #utility :: logging
|
---|
276 | libariba_la_SOURCES += \
|
---|
277 | utility/logging/Logging.h
|
---|
278 |
|
---|
279 | #utility :: measurement
|
---|
280 | libariba_la_SOURCES += \
|
---|
281 | utility/measurement/PathloadMeasurement.cpp \
|
---|
282 | utility/measurement/PathloadMeasurement.h
|
---|
283 |
|
---|
284 | #utility :: messages
|
---|
285 | libariba_la_SOURCES += \
|
---|
286 | utility/messages/_namespace.h \
|
---|
287 | utility/messages/Message.cpp \
|
---|
288 | utility/messages/Message.h \
|
---|
289 | utility/messages/MessageControlInfo.cpp \
|
---|
290 | utility/messages/MessageControlInfo.h \
|
---|
291 | utility/messages/MessageProvider.cpp \
|
---|
292 | utility/messages/MessageProvider.h \
|
---|
293 | utility/messages/MessageReceiver.cpp \
|
---|
294 | utility/messages/MessageReceiver.h \
|
---|
295 | utility/messages/MessageSender.cpp \
|
---|
296 | utility/messages/MessageSender.h \
|
---|
297 | utility/messages/MessageUtilities.h \
|
---|
298 | utility/messages/TextMessage.cpp \
|
---|
299 | utility/messages/TextMessage.h
|
---|
300 |
|
---|
301 | #utility :: misc
|
---|
302 | libariba_la_SOURCES += \
|
---|
303 | utility/misc/Demultiplexer.hpp \
|
---|
304 | utility/misc/Helper.cpp \
|
---|
305 | utility/misc/Helper.h \
|
---|
306 | utility/misc/KeyMapping.hpp \
|
---|
307 | utility/misc/OvlVis.cpp \
|
---|
308 | utility/misc/OvlVis.h \
|
---|
309 | utility/misc/sha1.cpp \
|
---|
310 | utility/misc/sha1.h \
|
---|
311 | utility/misc/StringFormat.cpp \
|
---|
312 | utility/misc/StringFormat.h
|
---|
313 |
|
---|
314 |
|
---|
315 | #utility :: serialization
|
---|
316 | libariba_la_SOURCES += \
|
---|
317 | utility/serialization/Serialization.cpp \
|
---|
318 | utility/serialization/DataUtilities.hpp \
|
---|
319 | utility/serialization/Serialization.hpp \
|
---|
320 | utility/serialization/Data.hpp \
|
---|
321 | utility/serialization/DataStream.hpp
|
---|
322 |
|
---|
323 | #utility :: system
|
---|
324 | libariba_la_SOURCES += \
|
---|
325 | utility/system/BlockingMethod.cpp \
|
---|
326 | utility/system/BlockingMethod.h \
|
---|
327 | utility/system/SystemEvent.cpp \
|
---|
328 | utility/system/SystemEvent.h \
|
---|
329 | utility/system/SystemEventListener.cpp \
|
---|
330 | utility/system/SystemEventListener.h \
|
---|
331 | utility/system/SystemEventType.cpp \
|
---|
332 | utility/system/SystemEventType.h \
|
---|
333 | utility/system/SystemQueue.cpp \
|
---|
334 | utility/system/SystemQueue.h \
|
---|
335 | utility/system/Timer.cpp \
|
---|
336 | utility/system/Timer.h \
|
---|
337 | utility/system/StartupWrapper.cpp \
|
---|
338 | utility/system/StartupWrapper.h \
|
---|
339 | utility/system/StartupInterface.h
|
---|
340 |
|
---|
341 | #utility :: types
|
---|
342 | libariba_la_SOURCES += \
|
---|
343 | utility/types/_namespace.h \
|
---|
344 | utility/types/Address.cpp \
|
---|
345 | utility/types/Address.h \
|
---|
346 | utility/types/Data.hpp \
|
---|
347 | utility/types/Identifier.cpp \
|
---|
348 | utility/types/Identifier.h \
|
---|
349 | utility/types/LinkID.cpp \
|
---|
350 | utility/types/LinkID.h \
|
---|
351 | utility/types/Locator.cpp \
|
---|
352 | utility/types/Locator.h \
|
---|
353 | utility/types/NodeID.cpp \
|
---|
354 | utility/types/NodeID.h \
|
---|
355 | utility/types/OverlayParameterSet.cpp \
|
---|
356 | utility/types/OverlayParameterSet.h \
|
---|
357 | utility/types/QoSParameterSet.cpp \
|
---|
358 | utility/types/QoSParameterSet.h \
|
---|
359 | utility/types/SecurityParameterSet.cpp \
|
---|
360 | utility/types/SecurityParameterSet.h \
|
---|
361 | utility/types/ServiceID.cpp \
|
---|
362 | utility/types/ServiceID.h \
|
---|
363 | utility/types/SpoVNetID.cpp \
|
---|
364 | utility/types/SpoVNetID.h
|
---|
365 |
|
---|
366 | # make install stuff ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
367 |
|
---|
368 | # libariba_ladir = ${pkgincludedir}
|
---|
369 | #
|
---|
370 | # #interfaces headers for make install - don't
|
---|
371 | # #remove the here listed .h files from _SOURCES!
|
---|
372 | # libariba_la_HEADERS = \
|
---|
373 | # tidy/ariba.h \
|
---|
374 | # tidy/AribaModule.h \
|
---|
375 | # tidy/DataMessage.h \
|
---|
376 | # tidy/Identifiers.h \
|
---|
377 | # tidy/LinkProperties.h \
|
---|
378 | # tidy/Module.h \
|
---|
379 | # tidy/Name.h \
|
---|
380 | # tidy/Node.h \
|
---|
381 | # tidy/NodeListener.h \
|
---|
382 | # tidy/SpoVNetProperties.h \
|
---|
383 | # tidy/TidyCommunicationListener.h \
|
---|
384 | # tidy/TidyMessage.h
|
---|
385 |
|
---|
386 | # old make install stuff ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
387 |
|
---|
388 | #autotools does not support hierarchical folders in the header dir
|
---|
389 | #so we copy them on our own using, similar to 14.3 in the autobook
|
---|
390 | # header files to install - TODO: extract all *.h and *.hpp files ~~~~
|
---|
391 |
|
---|
392 | libariba_ladir = ${pkgincludedir}
|
---|
393 |
|
---|
394 | install-data-local:
|
---|
395 | @for f in $(libariba_la_SOURCES); do \
|
---|
396 | d=`echo $$f | sed -e 's,/[^/]*$$,,'`; \
|
---|
397 | $(mkinstalldirs) $(DESTDIR)$(libariba_ladir)/$$d; \
|
---|
398 | if test -f $(srcdir)/$$f; then p=$(srcdir)/$$f; else p=$$f; fi; \
|
---|
399 | $(INSTALL_DATA) $$p $(DESTDIR)$(libariba_ladir)/$$f; \
|
---|
400 | done
|
---|
401 |
|
---|
402 | uninstall-local:
|
---|
403 | rm -rf $(DESTDIR)$(libariba_ladir)
|
---|