Imported Upstream version 3.2.2
[debian/gnuradio] / mblock / src / lib / Makefile.am
1 #
2 # Copyright 2006,2007,2008,2009 Free Software Foundation, Inc.
3
4 # This file is part of GNU Radio
5
6 # GNU Radio is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3, or (at your option)
9 # any later version.
10
11 # GNU Radio is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15
16 # You should have received a copy of the GNU General Public License
17 # along with GNU Radio; see the file COPYING.  If not, write to
18 # the Free Software Foundation, Inc., 51 Franklin Street,
19 # Boston, MA 02110-1301, USA.
20
21
22 include $(top_srcdir)/Makefile.common
23
24 AM_CPPFLAGS = $(DEFINES) $(OMNITHREAD_INCLUDES) $(PMT_INCLUDES) \
25         $(BOOST_CPPFLAGS) $(CPPUNIT_INCLUDES) $(WITH_INCLUDES) \
26         $(MBLOCK_INCLUDES)
27
28 # disable test until we fix ticket:180
29 # TESTS = test_mblock
30
31 lib_LTLIBRARIES = libmblock.la libmblock-qa.la
32
33 EXTRA_DIST =                            \
34         README.locking                  \
35         qa_bitset.mbh                   
36
37
38 BUILT_SOURCES =                         \
39         qa_bitset_mbh.cc                
40
41 qa_bitset_mbh.cc : qa_bitset.mbh
42         $(COMPILE_MBH) $(srcdir)/qa_bitset.mbh qa_bitset_mbh.cc
43
44 # These are the source files that go into the mblock shared library
45 libmblock_la_SOURCES =                  \
46         mb_class_registry.cc            \
47         mb_connection.cc                \
48         mb_endpoint.cc                  \
49         mb_exception.cc                 \
50         mb_gettid.cc                    \
51         mb_mblock.cc                    \
52         mb_mblock_impl.cc               \
53         mb_message.cc                   \
54         mb_msg_accepter.cc              \
55         mb_msg_accepter_msgq.cc         \
56         mb_msg_accepter_smp.cc          \
57         mb_msg_queue.cc                 \
58         mb_port.cc                      \
59         mb_port_simple.cc               \
60         mb_protocol_class.cc            \
61         mb_runtime.cc                   \
62         mb_runtime_base.cc              \
63         mb_runtime_nop.cc               \
64         mb_runtime_thread_per_block.cc  \
65         mb_timer_queue.cc               \
66         mb_util.cc                      \
67         mb_worker.cc                    
68
69
70 # magic flags
71 libmblock_la_LDFLAGS = $(NO_UNDEFINED)
72
73 # link the library against the c++ standard library
74 libmblock_la_LIBADD =                   \
75         $(OMNITHREAD_LA)                \
76         $(PMT_LA)                       \
77         -lstdc++                        
78
79 noinst_HEADERS =                        \
80         mb_gettid.h                     \
81         mb_msg_accepter_msgq.h          \
82         mb_port_simple.h                \
83         mb_util.h                       \
84         mb_connection.h                 \
85         mb_endpoint.h                   \
86         mb_mblock_impl.h                \
87         mb_msg_accepter_smp.h           \
88         mb_runtime_base.h               \
89         mb_runtime_nop.h                \
90         mb_runtime_thread_per_block.h   \
91         mb_timer_queue.h                \
92         mb_worker.h                     \
93         mbi_runtime_lock.h              \
94         qa_mblock.h                     \
95         qa_mblock_prims.h               \
96         qa_mblock_send.h                \
97         qa_mblock_sys.h                 \
98         qa_timeouts.h                   
99
100
101 # Build the qa code into its own library
102
103 libmblock_qa_la_SOURCES =               \
104         qa_bitset.cc                    \
105         qa_bitset_mbh.cc                \
106         qa_disconnect.cc                \
107         qa_mblock.cc                    \
108         qa_mblock_prims.cc              \
109         qa_mblock_send.cc               \
110         qa_mblock_sys.cc                \
111         qa_timeouts.cc                  
112
113
114 # magic flags
115 libmblock_qa_la_LDFLAGS = $(NO_UNDEFINED) -avoid-version
116
117 # link the library against the c++ standard library
118 libmblock_qa_la_LIBADD =                \
119         libmblock.la                    \
120         $(CPPUNIT_LIBS)                 \
121         -lstdc++                        
122
123
124 noinst_PROGRAMS =                       \
125         test_mblock                     \
126         benchmark_send                  
127
128 test_mblock_SOURCES = test_mblock.cc
129 test_mblock_LDADD   = libmblock-qa.la
130
131 benchmark_send_SOURCES = benchmark_send.cc
132 benchmark_send_LDADD   = libmblock-qa.la