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