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