Merged features/inband -r4812:5218 into trunk. This group of changes
[debian/gnuradio] / mblock / src / lib / Makefile.am
1 #
2 # Copyright 2006,2007 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 2, 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 INCLUDES = $(DEFINES) $(OMNITHREAD_INCLUDES) $(PMT_INCLUDES) $(BOOST_CFLAGS) $(CPPUNIT_INCLUDES)
25
26 TESTS = test_mblock
27
28 lib_LTLIBRARIES = libmblock.la libmblock-qa.la
29
30 EXTRA_DIST =                            \
31         README.locking                  \
32         qa_bitset.mbh                   
33
34
35 BUILT_SOURCES =                         \
36         qa_bitset_mbh.cc                
37
38 qa_bitset_mbh.cc : qa_bitset.mbh
39         $(COMPILE_MBH) qa_bitset.mbh qa_bitset_mbh.cc
40
41 # These are the source files that go into the mblock shared library
42 libmblock_la_SOURCES =                  \
43         mb_class_registry.cc            \
44         mb_connection.cc                \
45         mb_endpoint.cc                  \
46         mb_exception.cc                 \
47         mb_gettid.cc                    \
48         mb_mblock.cc                    \
49         mb_mblock_impl.cc               \
50         mb_message.cc                   \
51         mb_msg_accepter.cc              \
52         mb_msg_accepter_msgq.cc         \
53         mb_msg_accepter_smp.cc          \
54         mb_msg_queue.cc                 \
55         mb_port.cc                      \
56         mb_port_simple.cc               \
57         mb_protocol_class.cc            \
58         mb_runtime.cc                   \
59         mb_runtime_base.cc              \
60         mb_runtime_nop.cc               \
61         mb_runtime_thread_per_block.cc  \
62         mb_time.cc                      \
63         mb_timer_queue.cc               \
64         mb_util.cc                      \
65         mb_worker.cc                    
66
67
68 # magic flags
69 libmblock_la_LDFLAGS = $(NO_UNDEFINED) -avoid-version
70
71 # link the library against the c++ standard library
72 libmblock_la_LIBADD =                   \
73         $(OMNITHREAD_LA)                \
74         $(PMT_LA)                       \
75         -lstdc++                        
76
77 include_HEADERS =                       \
78         mb_class_registry.h             \
79         mb_common.h                     \
80         mb_exception.h                  \
81         mb_gettid.h                     \
82         mb_mblock.h                     \
83         mb_message.h                    \
84         mb_msg_accepter.h               \
85         mb_msg_accepter_msgq.h          \
86         mb_msg_queue.h                  \
87         mb_port.h                       \
88         mb_port_simple.h                \
89         mb_protocol_class.h             \
90         mb_runtime.h                    \
91         mb_time.h                       \
92         mb_util.h                       
93
94
95 noinst_HEADERS =                        \
96         mb_connection.h                 \
97         mb_endpoint.h                   \
98         mb_mblock_impl.h                \
99         mb_msg_accepter_smp.h           \
100         mb_runtime_base.h               \
101         mb_runtime_nop.h                \
102         mb_runtime_thread_per_block.h   \
103         mb_timer_queue.h                \
104         mb_worker.h                     \
105         mbi_runtime_lock.h              \
106         qa_mblock.h                     \
107         qa_mblock_prims.h               \
108         qa_mblock_send.h                \
109         qa_mblock_sys.h                 \
110         qa_timeouts.h                   
111
112
113 # Build the qa code into its own library
114
115 libmblock_qa_la_SOURCES =               \
116         qa_bitset.cc                    \
117         qa_bitset_mbh.cc                \
118         qa_disconnect.cc                \
119         qa_mblock.cc                    \
120         qa_mblock_prims.cc              \
121         qa_mblock_send.cc               \
122         qa_mblock_sys.cc                \
123         qa_timeouts.cc                  
124
125
126 # magic flags
127 libmblock_qa_la_LDFLAGS = $(NO_UNDEFINED) -avoid-version
128
129 # link the library against the c++ standard library
130 libmblock_qa_la_LIBADD =                \
131         libmblock.la                    \
132         $(CPPUNIT_LIBS)                 \
133         -lstdc++                        
134
135
136 noinst_PROGRAMS =                       \
137         test_mblock                     \
138         benchmark_send                  
139
140 test_mblock_SOURCES = test_mblock.cc
141 test_mblock_LDADD   = libmblock-qa.la
142
143 benchmark_send_SOURCES = benchmark_send.cc
144 benchmark_send_LDADD   = libmblock-qa.la
145
146 CLEANFILES = $(BUILT_SOURCES) *.pyc