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