source: sample/pingpong/Makefile.am@ 10570

Last change on this file since 10570 was 10570, checked in by Michael Tänzer, 12 years ago

pingpong: add missing linker dependency on boost-system and fix nested comments

File size: 1.1 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 $(BOOST_SYSTEM_LDFLAGS)
29LIBS += $(BOOST_SYSTEM_LIBS)
30
31if PROFILING
32AM_LDFLAGS += -pg
33endif
34
35if OMNET
36AM_LDFLAGS += -shared -rdynamic
37endif
38
39# sources ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40
41if OMNET
42
43libpingpong_la_SOURCES = \
44 PingPong.cpp \
45 PingPong.h \
46 PingPongMessage.cpp \
47 PingPongMessage.h
48
49else
50
51#needed to fix autotools bug
52pingpong_CPPFLAGS = $(AM_CPPFLAGS)
53
54pingpong_SOURCES = \
55 PingPongMessage.cpp \
56 PingPongMessage.h \
57 PingPong.cpp \
58 PingPong.h \
59 main.cpp
60
61endif
Note: See TracBrowser for help on using the repository browser.