6273e16d2d2b96d29f59b0b66b5a160d46118fc0
[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
33
34 # These are the source files that go into the mblock shared library
35 libmblock_la_SOURCES =                  \
36         mb_connection.cc                \
37         mb_endpoint.cc                  \
38         mb_exception.cc                 \
39         mb_mblock.cc                    \
40         mb_mblock_impl.cc               \
41         mb_message.cc                   \
42         mb_msg_accepter.cc              \
43         mb_msg_accepter_smp.cc          \
44         mb_msg_queue.cc                 \
45         mb_port.cc                      \
46         mb_port_simple.cc               \
47         mb_protocol_class.cc            \
48         mb_runtime.cc                   \
49         mb_runtime_nop.cc               \
50         mb_runtime_placeholder.cc       \
51         mb_runtime_thread_per_mblock.cc \
52         mb_util.cc                      
53
54
55 # magic flags
56 libmblock_la_LDFLAGS = $(NO_UNDEFINED) -avoid-version
57
58 # link the library against the c++ standard library
59 libmblock_la_LIBADD =                   \
60         $(OMNITHREAD_LA)                \
61         $(PMT_LA)                       \
62         -lstdc++                        
63
64 include_HEADERS =                       \
65         mb_common.h                     \
66         mb_exception.h                  \
67         mb_mblock.h                     \
68         mb_message.h                    \
69         mb_msg_accepter.h               \
70         mb_msg_queue.h                  \
71         mb_port.h                       \
72         mb_port_simple.h                \
73         mb_protocol_class.h             \
74         mb_runtime.h                    \
75         mb_runtime_nop.h                \
76         mb_runtime_placeholder.h        \
77         mb_runtime_thread_per_mblock.h  \
78         mb_util.h                       
79
80
81 noinst_HEADERS =                        \
82         mb_connection.h                 \
83         mb_endpoint.h                   \
84         mb_mblock_impl.h                \
85         mb_msg_accepter_smp.h           \
86         mbi_runtime_lock.h              \
87         qa_mblock.h                     \
88         qa_mblock_prims.h               \
89         qa_mblock_send.h                
90
91
92 # Build the qa code into its own library
93
94 libmblock_qa_la_SOURCES =               \
95         qa_mblock.cc                    \
96         qa_mblock_prims.cc              \
97         qa_mblock_send.cc               
98
99
100 # magic flags
101 libmblock_qa_la_LDFLAGS = $(NO_UNDEFINED) -avoid-version
102
103 # link the library against the c++ standard library
104 libmblock_qa_la_LIBADD =                \
105         libmblock.la                    \
106         $(CPPUNIT_LIBS)                 \
107         -lstdc++                        
108
109
110 noinst_PROGRAMS = test_mblock
111
112 test_mblock_SOURCES = test_mblock.cc
113 test_mblock_LDADD   = libmblock-qa.la
114
115 CLEANFILES = $(BUILT_SOURCES) *.pyc