Updated license from GPL version 2 or later to GPL version 3 or later.
[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 3, 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         usrp_server.mbh                 
31
32 lib_LTLIBRARIES =                       \
33         libusrp_inband.la               \
34         libusrp_inband-qa.la                    
35
36
37 # ------------------------------------------------------------------------
38 # Build the inband library
39
40 BUILT_SOURCES =                         \
41         usrp_server_mbh.cc
42
43 usrp_server_mbh.cc : usrp_server.mbh
44         $(COMPILE_MBH) $(srcdir)/usrp_server.mbh usrp_server_mbh.cc
45
46 libusrp_inband_la_SOURCES =             \
47         $(BUILT_SOURCES)                \
48         usrp_server.cc
49
50 libusrp_inband_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0
51
52 libusrp_inband_la_LIBADD =              \
53         $(MBLOCK_LA)                    \
54         -lstdc++
55
56
57 include_HEADERS =                       \
58         usrp_server.h                   
59
60 noinst_HEADERS =                        \
61         qa_inband.h                     \
62         qa_inband_packet_prims.h        \
63         qa_inband_usrp_server.h         \
64         usrp_inband_usb_packet.h        
65
66
67 # ------------------------------------------------------------------------
68 # Build the qa code in its own library
69
70 libusrp_inband_qa_la_SOURCES =          \
71         qa_inband.cc                    \
72         qa_inband_packet_prims.cc       \
73         qa_inband_usrp_server.cc        
74
75 # magic flags
76 libusrp_inband_qa_la_LDFLAGS = $(NO_UNDEFINED) -avoid-version
77
78 # link against c++ standard library
79 libusrp_inband_qa_la_LIBADD =           \
80         libusrp_inband.la               \
81         $(CPPUNIT_LIBS)                 \
82         -lstdc++
83
84 # ------------------------------------------------------------------------
85
86 noinst_PROGRAMS =                       \
87         test_inband
88
89 test_inband_SOURCES = test_inband.cc
90 test_inband_LDADD   = libusrp_inband-qa.la
91
92
93 MOSTLYCLEANFILES = \
94         $(BUILT_SOURCES) *~ *.pyc
95