Merged features/inband -r4812:5218 into trunk. This group of changes
[debian/gnuradio] / usrp / host / lib / inband / Makefile.am
1 #
2 # Copyright 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 along
17 # with this program; if not, write to the Free Software Foundation, Inc.,
18 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #
20
21 include $(top_srcdir)/Makefile.common
22
23 INCLUDES =      \
24         $(DEFINES) $(OMNITHREAD_INCLUDES) $(PMT_INCLUDES) $(MBLOCK_INCLUDES) \
25         $(USRP_INCLUDES) $(BOOST_CFLAGS) $(CPPUNIT_INCLUDES)
26
27 TESTS = test_inband
28
29 EXTRA_DIST =                            
30
31 lib_LTLIBRARIES =                       \
32         libusrp_inband.la               \
33         libusrp_inband-qa.la                    
34
35
36 # ------------------------------------------------------------------------
37 # Build the inband library
38
39 BUILT_SOURCES =                         \
40         usrp_server_mbh.cc
41
42 usrp_server_mbh.cc : usrp_server.mbh
43         $(COMPILE_MBH) usrp_server.mbh usrp_server_mbh.cc
44
45 libusrp_inband_la_SOURCES =             \
46         $(BUILT_SOURCES)                \
47         usrp_server.cc
48
49 libusrp_inband_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0
50
51 libusrp_inband_la_LIBADD =              \
52         $(MBLOCK_LA)                    \
53         -lstdc++
54
55
56 include_HEADERS =                       \
57         usrp_server.h                   
58
59 noinst_HEADERS =                        \
60         qa_inband.h                     \
61         qa_inband_packet_prims.h        \
62         qa_inband_usrp_server.h
63
64 # ------------------------------------------------------------------------
65 # Build the qa code in its own library
66
67 libusrp_inband_qa_la_SOURCES =          \
68         qa_inband.cc                    \
69         qa_inband_packet_prims.cc       \
70         qa_inband_usrp_server.cc        
71
72 # magic flags
73 libusrp_inband_qa_la_LDFLAGS = $(NO_UNDEFINED) -avoid-version
74
75 # link against c++ standard library
76 libusrp_inband_qa_la_LIBADD =           \
77         libusrp_inband.la               \
78         $(CPPUNIT_LIBS)                 \
79         -lstdc++
80
81 # ------------------------------------------------------------------------
82
83 noinst_PROGRAMS =                       \
84         test_inband
85
86 test_inband_SOURCES = test_inband.cc
87 test_inband_LDADD   = libusrp_inband-qa.la
88
89
90 MOSTLYCLEANFILES = \
91         $(BUILT_SOURCES) *~ *.pyc
92