source: source/ariba/Makefile.am@ 2418

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

-letzte fixes von tidy umstellung

File size: 13.1 KB
Line 
1lib_LTLIBRARIES = libariba.la
2libariba_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
11libariba_la_LDFLAGS = -version-info 0:0:0
12
13# compiler flags ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14
15AM_CPPFLAGS = -DLINUX -D_LINUX -I../ -D_REENTRANT -DSCTP_KERN
16AM_CPPFLAGS += $(BOOST_CPPFLAGS)
17
18if DEBUG
19AM_CPPFLAGS += -ggdb -DDEBUG -D_DEBUG -O0
20endif
21
22if PROFILING
23AM_CPPFLAGS += -pg
24endif
25
26if OMNET
27AM_CPPFLAGS += -fPIC -DUNDERLAY_OMNET
28endif
29
30# linker flags ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31
32AM_LDFLAGS = $(BOOST_THREAD_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_REGEX_LDFLAGS)
33LIBS += $(BOOST_THREAD_LIBS) $(BOOST_SYSTEM_LIBS) $(BOOST_REGEX_LIBS)
34
35if PROFILING
36AM_LDFLAGS += -pg
37endif
38
39if OMNET
40AM_LDFLAGS += -shared -rdynamic
41endif
42
43# sources and subdirs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
44
45#tidy interface
46libariba_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
71libariba_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
80libariba_la_SOURCES += \
81 communication/messages/AribaBaseMsg.cpp \
82 communication/messages/AribaBaseMsg.h
83
84#communication :: modules
85libariba_la_SOURCES += \
86 communication/modules/modules.h \
87 communication/modules/_namespace.h
88
89#communication :: modules :: network
90libariba_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
97libariba_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
103if OMNET
104#communication :: modules :: network :: omnet
105libariba_la_SOURCES += \
106 communication/modules/network/omnet/OmnetNetworkProtocol.cpp \
107 communication/modules/network/omnet/OmnetNetworkProtocol.h
108endif
109
110#communication :: modules :: transport
111libariba_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
117if OMNET
118#communication :: modules :: transport :: omnet
119libariba_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
124endif
125
126if OMNET
127else
128#communication :: modules :: transport :: protlib
129libariba_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
180endif
181
182if OMNET
183else
184#communication :: modules :: transport :: tcp
185libariba_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
190endif
191
192#communication :: networkinfo
193libariba_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
205libariba_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
214libariba_la_SOURCES += \
215 overlay/BaseOverlay.cpp \
216 overlay/BaseOverlay.h \
217 overlay/OverlayEvents.cpp \
218 overlay/OverlayEvents.h
219
220#overlay :: messages
221libariba_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
230libariba_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
248libariba_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
259libariba_la_SOURCES += \
260 utility/types.h \
261 utility/messages.h \
262 utility/serialization.h
263
264#utility :: configuration
265libariba_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
272libariba_la_SOURCES += \
273 utility/internal/Utilities.hpp
274
275#utility :: logging
276libariba_la_SOURCES += \
277 utility/logging/Logging.h
278
279#utility :: measurement
280libariba_la_SOURCES += \
281 utility/measurement/PathloadMeasurement.cpp \
282 utility/measurement/PathloadMeasurement.h
283
284#utility :: messages
285libariba_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
302libariba_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
312#utility :: serialization
313libariba_la_SOURCES += \
314 utility/serialization/Serialization.cpp \
315 utility/serialization/DataUtilities.hpp \
316 utility/serialization/Serialization.hpp \
317 utility/serialization/Data.hpp \
318 utility/serialization/DataStream.hpp
319
320#utility :: system
321libariba_la_SOURCES += \
322 utility/system/BlockingMethod.cpp \
323 utility/system/BlockingMethod.h \
324 utility/system/SystemEvent.cpp \
325 utility/system/SystemEvent.h \
326 utility/system/SystemEventListener.cpp \
327 utility/system/SystemEventListener.h \
328 utility/system/SystemEventType.cpp \
329 utility/system/SystemEventType.h \
330 utility/system/SystemQueue.cpp \
331 utility/system/SystemQueue.h \
332 utility/system/Timer.cpp \
333 utility/system/Timer.h \
334 utility/system/StartupWrapper.cpp \
335 utility/system/StartupWrapper.h \
336 utility/system/StartupInterface.h
337
338#utility :: types
339libariba_la_SOURCES += \
340 utility/types/_namespace.h \
341 utility/types/Address.cpp \
342 utility/types/Address.h \
343 utility/types/Data.hpp \
344 utility/types/Identifier.cpp \
345 utility/types/Identifier.h \
346 utility/types/LinkID.cpp \
347 utility/types/LinkID.h \
348 utility/types/Locator.cpp \
349 utility/types/Locator.h \
350 utility/types/NodeID.cpp \
351 utility/types/NodeID.h \
352 utility/types/OverlayParameterSet.cpp \
353 utility/types/OverlayParameterSet.h \
354 utility/types/QoSParameterSet.cpp \
355 utility/types/QoSParameterSet.h \
356 utility/types/SecurityParameterSet.cpp \
357 utility/types/SecurityParameterSet.h \
358 utility/types/ServiceID.cpp \
359 utility/types/ServiceID.h \
360 utility/types/SpoVNetID.cpp \
361 utility/types/SpoVNetID.h
362
363# make install stuff ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
364
365# libariba_ladir = ${pkgincludedir}
366#
367# #interfaces headers for make install - don't
368# #remove the here listed .h files from _SOURCES!
369# libariba_la_HEADERS = \
370# tidy/ariba.h \
371# tidy/AribaModule.h \
372# tidy/DataMessage.h \
373# tidy/Identifiers.h \
374# tidy/LinkProperties.h \
375# tidy/Module.h \
376# tidy/Name.h \
377# tidy/Node.h \
378# tidy/NodeListener.h \
379# tidy/SpoVNetProperties.h \
380# tidy/TidyCommunicationListener.h \
381# tidy/TidyMessage.h
382
383# old make install stuff ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
384
385#autotools does not support hierarchical folders in the header dir
386#so we copy them on our own using, similar to 14.3 in the autobook
387# header files to install - TODO: extract all *.h and *.hpp files ~~~~
388
389libariba_ladir = ${pkgincludedir}
390
391install-data-local:
392 @for f in $(libariba_la_SOURCES); do \
393 d=`echo $$f | sed -e 's,/[^/]*$$,,'`; \
394 $(mkinstalldirs) $(DESTDIR)$(libariba_ladir)/$$d; \
395 if test -f $(srcdir)/$$f; then p=$(srcdir)/$$f; else p=$$f; fi; \
396 $(INSTALL_DATA) $$p $(DESTDIR)$(libariba_ladir)/$$f; \
397 done
398
399uninstall-local:
400 rm -rf $(DESTDIR)$(libariba_ladir)
Note: See TracBrowser for help on using the repository browser.