1 | # sources ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
2 |
|
---|
3 | lib_LTLIBRARIES = libariba_dht.la
|
---|
4 |
|
---|
5 | # compiler flags ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
6 | # read the autotools book 11.4 for setting the versioning number
|
---|
7 | # this is different from normal versioning schemes and important
|
---|
8 | # to set correctly as the runtime linker chooses the correct lib
|
---|
9 | # depending on the versioning information here! This is not the
|
---|
10 | # project version number!!
|
---|
11 |
|
---|
12 | libariba_dht_la_LDFLAGS = -version-info 1:0:0
|
---|
13 |
|
---|
14 | # compiler flags ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
15 |
|
---|
16 | AM_CPPFLAGS = -DLINUX -D_LINUX -I../../ -D_REENTRANT
|
---|
17 | AM_CPPFLAGS += $(BOOST_CPPFLAGS)
|
---|
18 |
|
---|
19 | if DEBUG
|
---|
20 | AM_CPPFLAGS += -ggdb -DDEBUG -D_DEBUG -O0
|
---|
21 | endif
|
---|
22 |
|
---|
23 | if PROFILING
|
---|
24 | AM_CPPFLAGS += -pg
|
---|
25 | endif
|
---|
26 |
|
---|
27 | if OMNET
|
---|
28 | AM_CPPFLAGS += -fPIC -DUNDERLAY_OMNET
|
---|
29 | endif
|
---|
30 |
|
---|
31 | # linker flags ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
32 |
|
---|
33 | AM_LDFLAGS = -L../../ariba -lariba
|
---|
34 | AM_LDFLAGS += $(BOOST_SYSTEM_LDFLAGS)
|
---|
35 | LIBS += $(BOOST_SYSTEM_LIBS)
|
---|
36 |
|
---|
37 | if PROFILING
|
---|
38 | AM_LDFLAGS += -pg
|
---|
39 | endif
|
---|
40 |
|
---|
41 | if OMNET
|
---|
42 | AM_LDFLAGS += -shared -rdynamic
|
---|
43 | endif
|
---|
44 |
|
---|
45 | # sources ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
46 |
|
---|
47 | libariba_dht_ladir = ${pkgincludedir}
|
---|
48 |
|
---|
49 | #needed to fix autotools bug
|
---|
50 | ariba_dht_CPPFLAGS = $(AM_CPPFLAGS)
|
---|
51 |
|
---|
52 | libariba_dht_la_SOURCES = \
|
---|
53 | Dht.cpp \
|
---|
54 | messages/DhtMessage.cpp
|
---|
55 |
|
---|
56 | nobase_libariba_dht_la_HEADERS = \
|
---|
57 | Dht.h \
|
---|
58 | messages/DhtMessage.h \
|
---|
59 | DhtAnswerInterface.h
|
---|
60 |
|
---|