source: source/ariba/Makefile.am@ 4076

Last change on this file since 4076 was 4076, checked in by Christoph Mayer, 16 years ago

linker flag to ignore multiple definitions, needed for scratchbox

File size: 13.5 KB
Line 
1# the rocking Ariba library
2
3lib_LTLIBRARIES = libariba.la
4
5# source files and header files
6# header files get installed using
7# make install. the nobase_ prefix
8# keeps the directory structure
9
10libariba_la_SOURCES =
11nobase_libariba_la_HEADERS =
12
13# compiler flags ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14# read the autotools book 11.4 for setting the versioning number
15# this is different from normal versioning schemes and important
16# to set correctly as the runtime linker chooses the correct lib
17# depending on the versioning information here! This is not the
18# project version number!!
19
20libariba_la_LDFLAGS = -version-info 0:0:0
21libariba_la_LDFLAGS += -Wl,-zmuldefs
22
23# compiler flags ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24
25AM_CPPFLAGS = -DLINUX -D_LINUX -I../ -D_REENTRANT -DSCTP_KERN
26AM_CPPFLAGS += $(BOOST_CPPFLAGS)
27
28if DEBUG
29AM_CPPFLAGS += -ggdb -DDEBUG -D_DEBUG -O0
30endif
31
32if PROFILING
33AM_CPPFLAGS += -pg
34endif
35
36if OMNET
37AM_CPPFLAGS += -fPIC -DUNDERLAY_OMNET
38endif
39
40if LOGCOLORS
41AM_CPPFLAGS += -DLOGCOLORS
42endif
43
44# linker flags ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
45
46AM_LDFLAGS = $(BOOST_THREAD_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_REGEX_LDFLAGS)
47LIBS += $(BOOST_THREAD_LIBS) $(BOOST_SYSTEM_LIBS) $(BOOST_REGEX_LIBS)
48
49if PROFILING
50AM_LDFLAGS += -pg
51endif
52
53if OMNET
54AM_LDFLAGS += -shared -rdynamic
55endif
56
57# sources and subdirs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
58
59# where to put the libs into -> /ariba
60# currently we have no version number
61# attached to the header/libs folder
62libariba_ladir = ${pkgincludedir}
63
64# ------------> tidy interface
65
66libariba_la_SOURCES += \
67 AribaModule.cpp \
68 CommunicationListener.cpp \
69 Identifiers.cpp \
70 LinkProperties.cpp \
71 DataMessage.cpp \
72 Module.cpp \
73 Name.cpp \
74 Node.cpp \
75 NodeListener.cpp \
76 SideportListener.cpp \
77 SpoVNetProperties.cpp
78
79nobase_libariba_la_HEADERS += \
80 ariba.h \
81 AribaModule.h \
82 CommunicationListener.h \
83 Identifiers.h \
84 LinkProperties.h \
85 Message.h \
86 DataMessage.h \
87 Module.h \
88 Name.h \
89 Node.h \
90 NodeListener.h \
91 SideportListener.h \
92 SpoVNetProperties.h
93
94# ------------> communication
95
96libariba_la_SOURCES += \
97 communication/BaseCommunication.cpp \
98 communication/CommunicationEvents.cpp \
99 communication/EndpointDescriptor.cpp
100
101nobase_libariba_la_HEADERS += \
102 communication/BaseCommunication.h \
103 communication/CommunicationEvents.h \
104 communication/EndpointDescriptor.h
105
106# ------------> communication :: messages
107
108libariba_la_SOURCES += \
109 communication/messages/AribaBaseMsg.cpp
110
111nobase_libariba_la_HEADERS += \
112 communication/messages/AribaBaseMsg.h
113
114# ------------> communication :: modules
115
116nobase_libariba_la_HEADERS += \
117 communication/modules/modules.h \
118 communication/modules/_namespace.h
119
120# ------------> communication :: modules :: network
121libariba_la_SOURCES += \
122 communication/modules/network/NetworkLocator.cpp \
123 communication/modules/network/NetworkProtocol.cpp
124
125nobase_libariba_la_HEADERS += \
126 communication/modules/network/NetworkLocator.h \
127 communication/modules/network/NetworkProtocol.h
128
129# ------------> communication :: modules :: network :: ip
130
131libariba_la_SOURCES += \
132 communication/modules/network/ip/IPv4Locator.cpp \
133 communication/modules/network/ip/IPv4NetworkProtocol.cpp
134
135nobase_libariba_la_HEADERS += \
136 communication/modules/network/ip/IPv4Locator.h \
137 communication/modules/network/ip/IPv4NetworkProtocol.h
138
139# ------------> communication :: modules :: network :: omnet
140
141if OMNET
142libariba_la_SOURCES += \
143 communication/modules/network/omnet/OmnetNetworkProtocol.cpp
144
145nobase_libariba_la_HEADERS += \
146 communication/modules/network/omnet/OmnetNetworkProtocol.h
147endif
148
149#------------> communication :: modules :: transport
150
151libariba_la_SOURCES += \
152 communication/modules/transport/TransportLocator.cpp \
153 communication/modules/transport/TransportProtocol.cpp
154
155nobase_libariba_la_HEADERS += \
156 communication/modules/transport/TransportLocator.h \
157 communication/modules/transport/TransportProtocol.h
158
159#------------> communication :: modules :: transport :: omnet
160
161if OMNET
162libariba_la_SOURCES += \
163 communication/modules/transport/omnet/AribaOmnetMessage_m.cc \
164 communication/modules/transport/omnet/AribaOmnetModule.cpp
165
166nobase_libariba_la_HEADERS += \
167 communication/modules/transport/omnet/AribaOmnetMessage_m.h \
168 communication/modules/transport/omnet/AribaOmnetModule.h
169endif
170
171#------------> communication :: modules :: transport :: protlib
172
173if OMNET
174else
175libariba_la_SOURCES += \
176 communication/modules/transport/protlib/timer_module.cpp \
177 communication/modules/transport/protlib/threadsafe_db.cpp \
178 communication/modules/transport/protlib/address.cpp \
179 communication/modules/transport/protlib/ie.cpp \
180 communication/modules/transport/protlib/tp_over_tcp.cpp \
181 communication/modules/transport/protlib/setuid.cpp \
182 communication/modules/transport/protlib/tp.cpp \
183 communication/modules/transport/protlib/connectionmap_uds.cpp \
184 communication/modules/transport/protlib/logfile.cpp \
185 communication/modules/transport/protlib/timer.cpp \
186 communication/modules/transport/protlib/connectionmap.cpp \
187 communication/modules/transport/protlib/fqueue.cpp \
188 communication/modules/transport/protlib/threads.cpp \
189 communication/modules/transport/protlib/messages.cpp \
190 communication/modules/transport/protlib/queuemanager.cpp \
191 communication/modules/transport/protlib/network_message.cpp \
192 communication/modules/transport/protlib/configuration.cpp \
193 communication/modules/transport/protlib/tp_over_uds.cpp \
194 communication/modules/transport/protlib/tp_over_udp.cpp \
195 communication/modules/transport/protlib/tp_over_tls_tcp.cpp \
196 communication/modules/transport/protlib/fastqueue.c \
197 communication/modules/transport/protlib/eclock_gettime.c \
198 communication/modules/transport/protlib/testqueue.c
199
200nobase_libariba_la_HEADERS += \
201 communication/modules/transport/protlib/tp_over_uds.h \
202 communication/modules/transport/protlib/threadsafe_db.h \
203 communication/modules/transport/protlib/configuration.h \
204 communication/modules/transport/protlib/ie.h \
205 communication/modules/transport/protlib/llhashers.h \
206 communication/modules/transport/protlib/fqueue.h \
207 communication/modules/transport/protlib/assocdata_uds.h \
208 communication/modules/transport/protlib/address.h \
209 communication/modules/transport/protlib/logfile.h \
210 communication/modules/transport/protlib/timer.h \
211 communication/modules/transport/protlib/queuemanager.h \
212 communication/modules/transport/protlib/messages.h \
213 communication/modules/transport/protlib/assocdata.h \
214 communication/modules/transport/protlib/protlib_types.h \
215 communication/modules/transport/protlib/tp_over_tcp.h \
216 communication/modules/transport/protlib/tp.h \
217 communication/modules/transport/protlib/threads.h \
218 communication/modules/transport/protlib/connectionmap.h \
219 communication/modules/transport/protlib/timer_module.h \
220 communication/modules/transport/protlib/fastqueue.h \
221 communication/modules/transport/protlib/tperror.h \
222 communication/modules/transport/protlib/tp_over_tls_tcp.h \
223 communication/modules/transport/protlib/network_message.h \
224 communication/modules/transport/protlib/tp_over_udp.h \
225 communication/modules/transport/protlib/setuid.h \
226 communication/modules/transport/protlib/cleanuphandler.h \
227 communication/modules/transport/protlib/connectionmap_uds.h
228endif
229
230#------------> communication :: modules :: transport :: tcp
231
232if OMNET
233else
234libariba_la_SOURCES += \
235 communication/modules/transport/tcp/TCPTransport.cpp \
236 communication/modules/transport/tcp/TCPTransportLocator.cpp
237
238nobase_libariba_la_HEADERS += \
239 communication/modules/transport/tcp/TCPTransport.h \
240 communication/modules/transport/tcp/TCPTransportLocator.h
241endif
242
243#------------> communication :: networkinfo
244
245libariba_la_SOURCES += \
246 communication/networkinfo/AddressInformation.cpp \
247 communication/networkinfo/NetworkChangeDetection.cpp \
248 communication/networkinfo/NetworkInformation.cpp \
249 communication/networkinfo/NetworkInterface.cpp
250
251nobase_libariba_la_HEADERS += \
252 communication/networkinfo/AddressInformation.h \
253 communication/networkinfo/NetworkChangeDetection.h \
254 communication/networkinfo/NetworkChangeInterface.h \
255 communication/networkinfo/NetworkInterface.h \
256 communication/networkinfo/NetworkInformation.h
257
258#------------> overlay
259
260libariba_la_SOURCES += \
261 overlay/BaseOverlay.cpp
262
263nobase_libariba_la_HEADERS += \
264 overlay/BaseOverlay.h
265
266#------------> overlay :: messages
267
268libariba_la_SOURCES += \
269 overlay/messages/JoinReply.cpp \
270 overlay/messages/JoinRequest.cpp \
271 overlay/messages/LinkRequest.cpp \
272 overlay/messages/OverlayMsg.cpp
273
274nobase_libariba_la_HEADERS += \
275 overlay/messages/JoinReply.h \
276 overlay/messages/JoinRequest.h \
277 overlay/messages/LinkRequest.h \
278 overlay/messages/OverlayMsg.h
279
280#------------> overlay :: modules
281
282libariba_la_SOURCES += \
283 overlay/modules/OverlayStructureEvents.cpp \
284 overlay/modules/OverlayFactory.cpp \
285 overlay/modules/OverlayInterface.cpp
286
287nobase_libariba_la_HEADERS += \
288 overlay/modules/OverlayStructureEvents.h \
289 overlay/modules/OverlayFactory.h \
290 overlay/modules/OverlayInterface.h
291
292#------------> overlay :: modules :: onehop
293
294libariba_la_SOURCES += \
295 overlay/modules/onehop/OneHop.cpp \
296 overlay/modules/onehop/messages/OneHopMessage.cpp \
297 overlay/modules/onehop/messages/NodeListingRequest.cpp \
298 overlay/modules/onehop/messages/NodeListingReply.cpp
299
300nobase_libariba_la_HEADERS += \
301 overlay/modules/onehop/OneHop.h \
302 overlay/modules/onehop/messages/OneHopMessage.h \
303 overlay/modules/onehop/messages/NodeListingRequest.h \
304 overlay/modules/onehop/messages/NodeListingReply.h
305
306#------------> overlay :: modules :: chord
307
308libariba_la_SOURCES += \
309 overlay/modules/chord/Chord.cpp \
310 overlay/modules/chord/messages/ChordMessage.cpp \
311 overlay/modules/chord/messages/Discovery.cpp
312
313nobase_libariba_la_HEADERS += \
314 overlay/modules/chord/Chord.h \
315 overlay/modules/chord/messages/ChordMessage.h \
316 overlay/modules/chord/messages/Discovery.h \
317 overlay/modules/chord/detail/chord_routing_table.hpp \
318 overlay/modules/chord/detail/comparators.hpp \
319 overlay/modules/chord/detail/distances.hpp \
320 overlay/modules/chord/detail/minimizer_table.hpp \
321 overlay/modules/chord/detail/table_listener.hpp
322
323#------------> utility
324
325nobase_libariba_la_HEADERS += \
326 utility/types.h \
327 utility/messages.h \
328 utility/serialization.h
329
330#------------> utility :: configuration
331
332libariba_la_SOURCES += \
333 utility/configuration/ConfigFile.cpp \
334 utility/configuration/Configuration.cpp
335
336nobase_libariba_la_HEADERS += \
337 utility/configuration/ConfigFile.h \
338 utility/configuration/Configuration.h
339
340#------------> utility :: internal
341
342nobase_libariba_la_HEADERS += \
343 utility/internal/Utilities.hpp
344
345#------------> utility :: logging
346
347nobase_libariba_la_HEADERS += \
348 utility/logging/Logging.h
349
350#------------> utility :: measurement
351
352libariba_la_SOURCES += \
353 utility/measurement/PathloadMeasurement.cpp
354
355nobase_libariba_la_HEADERS += \
356 utility/measurement/PathloadMeasurement.h
357
358#------------> utility :: messages
359
360libariba_la_SOURCES += \
361 utility/messages/Message.cpp \
362 utility/messages/MessageProvider.cpp \
363 utility/messages/MessageReceiver.cpp \
364 utility/messages/MessageSender.cpp \
365 utility/messages/TextMessage.cpp
366
367nobase_libariba_la_HEADERS += \
368 utility/messages/_namespace.h \
369 utility/messages/Message.h \
370 utility/messages/MessageProvider.h \
371 utility/messages/MessageReceiver.h \
372 utility/messages/MessageSender.h \
373 utility/messages/MessageUtilities.h \
374 utility/messages/TextMessage.h
375
376#------------> utility :: misc
377
378libariba_la_SOURCES += \
379 utility/misc/Helper.cpp \
380 utility/misc/OvlVis.cpp \
381 utility/misc/sha1.cpp \
382 utility/misc/StringFormat.cpp
383
384nobase_libariba_la_HEADERS += \
385 utility/misc/Demultiplexer.hpp \
386 utility/misc/Helper.h \
387 utility/misc/KeyMapping.hpp \
388 utility/misc/OvlVis.h \
389 utility/misc/sha1.h \
390 utility/misc/StringFormat.h
391
392#------------> utility :: serialization
393
394libariba_la_SOURCES += \
395 utility/serialization/Serialization.cpp
396
397nobase_libariba_la_HEADERS += \
398 utility/serialization/DataUtilities.hpp \
399 utility/serialization/Serialization.hpp \
400 utility/serialization/Data.hpp \
401 utility/serialization/DataStream.hpp
402
403#------------> utility :: system
404
405libariba_la_SOURCES += \
406 utility/system/BlockingMethod.cpp \
407 utility/system/SystemEvent.cpp \
408 utility/system/SystemEventListener.cpp \
409 utility/system/SystemEventType.cpp \
410 utility/system/SystemQueue.cpp \
411 utility/system/Timer.cpp \
412 utility/system/StartupWrapper.cpp
413
414nobase_libariba_la_HEADERS += \
415 utility/system/BlockingMethod.h \
416 utility/system/SystemEvent.h \
417 utility/system/SystemEventListener.h \
418 utility/system/SystemEventType.h \
419 utility/system/SystemQueue.h \
420 utility/system/Timer.h \
421 utility/system/StartupWrapper.h \
422 utility/system/StartupInterface.h
423
424#------------> utility :: types
425
426libariba_la_SOURCES += \
427 utility/types/Address.cpp \
428 utility/types/Identifier.cpp \
429 utility/types/LinkID.cpp \
430 utility/types/Locator.cpp \
431 utility/types/NodeID.cpp \
432 utility/types/OverlayParameterSet.cpp \
433 utility/types/QoSParameterSet.cpp \
434 utility/types/SecurityParameterSet.cpp \
435 utility/types/ServiceID.cpp \
436 utility/types/SpoVNetID.cpp
437
438nobase_libariba_la_HEADERS += \
439 utility/types/_namespace.h \
440 utility/types/Address.h \
441 utility/types/Data.hpp \
442 utility/types/Identifier.h \
443 utility/types/LinkID.h \
444 utility/types/Locator.h \
445 utility/types/NodeID.h \
446 utility/types/OverlayParameterSet.h \
447 utility/types/QoSParameterSet.h \
448 utility/types/SecurityParameterSet.h \
449 utility/types/ServiceID.h \
450 utility/types/SpoVNetID.h
Note: See TracBrowser for help on using the repository browser.