An Overlay-based
Virtual Network Substrate
SpoVNet

source: sample/pingpong/Makefile.am @ 2410

Last change on this file since 2410 was 2410, checked in by mies, 12 years ago

adapted ping pong example

File size: 1.0 KB
Line 
1# sources ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2
3if OMNET
4lib_LTLIBRARIES = libpingpong.la
5else
6bin_PROGRAMS    = pingpong
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
42libpingpong_la_SOURCES = \
43  PingPong.cpp \
44  PingPong.h \
45  PingPongMessage.cpp \
46  PingPongMessage.h
47
48else
49
50#needed to fix autotools bug
51pingpong_CPPFLAGS = $(AM_CPPFLAGS)
52
53pingpong_SOURCES = \
54  PingPongMessage.cpp \
55  PingPongMessage.h \
56  PingPong.cpp \
57  PingPong.h \
58  main.cpp
59
60endif
Note: See TracBrowser for help on using the repository browser.