source: sample/testdht/Makefile.am@ 6967

Last change on this file since 6967 was 6760, checked in by mies, 15 years ago

added dht test case

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