source: source/ariba/Makefile.am@ 2392

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