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