Line | |
---|
1 | # sources ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
2 |
|
---|
3 | if OMNET
|
---|
4 | lib_LTLIBRARIES = libtestdht.la
|
---|
5 | else
|
---|
6 | bin_PROGRAMS = testdht
|
---|
7 | endif
|
---|
8 |
|
---|
9 | # compiler flags ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
10 |
|
---|
11 | AM_CPPFLAGS = -DLINUX -D_LINUX -I../../source -D_REENTRANT
|
---|
12 | AM_CPPFLAGS += $(BOOST_CPPFLAGS)
|
---|
13 |
|
---|
14 | if DEBUG
|
---|
15 | AM_CPPFLAGS += -ggdb -DDEBUG -D_DEBUG -O0
|
---|
16 | endif
|
---|
17 |
|
---|
18 | if PROFILING
|
---|
19 | AM_CPPFLAGS += -pg
|
---|
20 | endif
|
---|
21 |
|
---|
22 | if OMNET
|
---|
23 | AM_CPPFLAGS += -fPIC -DUNDERLAY_OMNET
|
---|
24 | endif
|
---|
25 |
|
---|
26 | # linker flags ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
27 |
|
---|
28 | AM_LDFLAGS = -L../../source/ariba -lariba
|
---|
29 |
|
---|
30 | if PROFILING
|
---|
31 | AM_LDFLAGS += -pg
|
---|
32 | endif
|
---|
33 |
|
---|
34 | if OMNET
|
---|
35 | AM_LDFLAGS += -shared -rdynamic
|
---|
36 | endif
|
---|
37 |
|
---|
38 | # sources ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
39 |
|
---|
40 | if OMNET
|
---|
41 |
|
---|
42 | libtestdht_la_SOURCES = \
|
---|
43 | DHTTest.cpp \
|
---|
44 | DHTTest.h \
|
---|
45 | PingPongMessage.cpp \
|
---|
46 | PingPongMessage.h
|
---|
47 |
|
---|
48 | else
|
---|
49 |
|
---|
50 | #needed to fix autotools bug
|
---|
51 | testdht_CPPFLAGS = $(AM_CPPFLAGS)
|
---|
52 |
|
---|
53 | testdht_SOURCES = \
|
---|
54 | PingPongMessage.cpp \
|
---|
55 | PingPongMessage.h \
|
---|
56 | DHTTest.cpp \
|
---|
57 | DHTTest.h \
|
---|
58 | main.cpp
|
---|
59 |
|
---|
60 | endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.