source: sample/tidy_pingpong/Makefile.am@ 2378

Last change on this file since 2378 was 2378, checked in by Christoph Mayer, 16 years ago

Renamed remotely

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 TidyPingPong.cpp \
44 TidyPingPong.h \
45 TidyPingPongMessage.cpp \
46 TidyPingPongMessage.h
47
48else
49
50#needed to fix autotools bug
51pingpong_CPPFLAGS = $(AM_CPPFLAGS)
52
53pingpong_SOURCES = \
54 TidyPingPongMessage.cpp \
55 TidyPingPongMessage.h \
56 TidyPingPong.cpp \
57 TidyPingPong.h \
58 main.cpp
59
60endif
Note: See TracBrowser for help on using the repository browser.