4174730071b1bfe5fe30cef2ac503f980f453037
[debian/gnuradio] / mblock / src / lib / Makefile.am
1 #
2 # Copyright 2006 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_port.cc                      \
41         mb_port_detail.cc               \
42         mb_protocol_class.cc            \
43         mb_runtime.cc                   \
44         mb_runtime_impl.cc              \
45         mb_util.cc                      
46
47
48 # magic flags
49 libmblock_la_LDFLAGS = $(NO_UNDEFINED) -avoid-version
50
51 # link the library against the c++ standard library
52 libmblock_la_LIBADD =                   \
53         $(PMT_LIBS)                     \
54         -lstdc++                        
55
56 include_HEADERS =                       \
57         mb_common.h                     \
58         mb_exception.h                  \
59         mb_mblock.h                     \
60         mb_message.h                    \
61         mb_port.h                       \
62         mb_protocol_class.h             \
63         mb_runtime.h                    \
64         mb_util.h                       
65
66
67 noinst_HEADERS =                        \
68         mb_connection.h                 \
69         mb_endpoint.h                   \
70         mb_mblock_impl.h                \
71         mb_port_detail.h                \
72         mb_runtime_impl.h               \
73         qa_mblock.h                     \
74         qa_mblock_prims.h               
75
76
77 # Build the qa code into its own library
78
79 libmblock_qa_la_SOURCES =               \
80         qa_mblock.cc                    \
81         qa_mblock_prims.cc              
82
83
84 # magic flags
85 libmblock_qa_la_LDFLAGS = $(NO_UNDEFINED) -avoid-version
86
87 # link the library against the c++ standard library
88 libmblock_qa_la_LIBADD =                \
89         libmblock.la                    \
90         $(CPPUNIT_LIBS)                 \
91         -lstdc++                        
92
93
94 noinst_PROGRAMS =                       \
95         test_mblock
96
97
98 LIBMBLOCK   = libmblock.la
99 LIBMBLOCKQA = libmblock-qa.la $(LIBMBLOCK)
100
101 test_mblock_SOURCES = test_mblock.cc
102 test_mblock_LDADD   = $(LIBMBLOCKQA)
103
104
105 CLEANFILES = $(BUILT_SOURCES) *.pyc