Merged features/mp-sched -r8915:9335 into the trunk. The trunk now
[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 AM_CPPFLAGS = $(DEFINES) $(OMNITHREAD_INCLUDES) $(PMT_INCLUDES) \
25         $(BOOST_CPPFLAGS) $(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_timer_queue.cc               \
65         mb_util.cc                      \
66         mb_worker.cc                    
67
68
69 # magic flags
70 libmblock_la_LDFLAGS = $(NO_UNDEFINED)
71
72 # link the library against the c++ standard library
73 libmblock_la_LIBADD =                   \
74         $(OMNITHREAD_LA)                \
75         $(PMT_LA)                       \
76         -lstdc++                        
77
78 include_HEADERS =                       \
79         mb_class_registry.h             \
80         mb_common.h                     \
81         mb_exception.h                  \
82         mb_gettid.h                     \
83         mb_mblock.h                     \
84         mb_message.h                    \
85         mb_msg_accepter.h               \
86         mb_msg_accepter_msgq.h          \
87         mb_msg_queue.h                  \
88         mb_port.h                       \
89         mb_port_simple.h                \
90         mb_protocol_class.h             \
91         mb_runtime.h                    \
92         mb_time.h                       \
93         mb_util.h                       
94
95
96 noinst_HEADERS =                        \
97         mb_connection.h                 \
98         mb_endpoint.h                   \
99         mb_mblock_impl.h                \
100         mb_msg_accepter_smp.h           \
101         mb_runtime_base.h               \
102         mb_runtime_nop.h                \
103         mb_runtime_thread_per_block.h   \
104         mb_timer_queue.h                \
105         mb_worker.h                     \
106         mbi_runtime_lock.h              \
107         qa_mblock.h                     \
108         qa_mblock_prims.h               \
109         qa_mblock_send.h                \
110         qa_mblock_sys.h                 \
111         qa_timeouts.h                   
112
113
114 # Build the qa code into its own library
115
116 libmblock_qa_la_SOURCES =               \
117         qa_bitset.cc                    \
118         qa_bitset_mbh.cc                \
119         qa_disconnect.cc                \
120         qa_mblock.cc                    \
121         qa_mblock_prims.cc              \
122         qa_mblock_send.cc               \
123         qa_mblock_sys.cc                \
124         qa_timeouts.cc                  
125
126
127 # magic flags
128 libmblock_qa_la_LDFLAGS = $(NO_UNDEFINED) -avoid-version
129
130 # link the library against the c++ standard library
131 libmblock_qa_la_LIBADD =                \
132         libmblock.la                    \
133         $(CPPUNIT_LIBS)                 \
134         -lstdc++                        
135
136
137 noinst_PROGRAMS =                       \
138         test_mblock                     \
139         benchmark_send                  
140
141 test_mblock_SOURCES = test_mblock.cc
142 test_mblock_LDADD   = libmblock-qa.la
143
144 benchmark_send_SOURCES = benchmark_send.cc
145 benchmark_send_LDADD   = libmblock-qa.la
146
147 CLEANFILES = $(BUILT_SOURCES) *.pyc