Merged eb/usrp-la r6317:6320 into trunk. This deborks the dependency
[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         -I$(srcdir)/../../apps-inband
27
28 TESTS = test_inband
29
30 EXTRA_DIST =                            \
31         usrp_server.mbh                 \
32         usrp_interface.mbh 
33
34
35 lib_LTLIBRARIES =                       \
36         libusrp_inband.la               \
37         libusrp_inband-qa.la
38
39
40 # ------------------------------------------------------------------------
41 # Build the inband library
42
43 BUILT_SOURCES =                         \
44         usrp_server_mbh.cc              \
45         usrp_interface_mbh.cc 
46
47 usrp_server_mbh.cc : usrp_server.mbh
48         $(COMPILE_MBH) $(srcdir)/usrp_server.mbh usrp_server_mbh.cc
49
50 usrp_interface_mbh.cc : usrp_interface.mbh
51         $(COMPILE_MBH) usrp_interface.mbh usrp_interface_mbh.cc
52
53 libusrp_inband_la_SOURCES =             \
54         $(BUILT_SOURCES)                \
55         $(srcdir)/../../apps-inband/ui_sincos.c \
56         usrp_inband_usb_packet.cc       \
57         usrp_rx.cc                      \
58         usrp_rx_stub.cc                 \
59         usrp_server.cc                  \
60         usrp_tx.cc                      \
61         usrp_tx_stub.cc                 \
62         usrp_usb_interface.cc           
63
64 libusrp_inband_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0
65
66 libusrp_inband_la_LIBADD =              \
67         $(MBLOCK_LA)                    \
68         $(USRP_LA)                      \
69         -lstdc++
70
71 include_HEADERS =                       \
72         usrp_inband_usb_packet.h        \
73         usrp_rx.h                       \
74         usrp_rx_stub.h                  \
75         usrp_server.h                   \
76         usrp_tx.h                       \
77         usrp_tx_stub.h                  \
78         usrp_usb_interface.h            
79
80 noinst_HEADERS =                        \
81         fake_usrp.h                     \
82         qa_inband.h                     \
83         qa_inband_packet_prims.h        \
84         qa_inband_usrp_server.h         \
85         symbols_usrp_channel.h          \
86         symbols_usrp_interface_cs.h     \
87         symbols_usrp_low_level_cs.h     \
88         symbols_usrp_rx.h               \
89         symbols_usrp_rx_cs.h            \
90         symbols_usrp_server_cs.h        \
91         symbols_usrp_tx.h               \
92         symbols_usrp_tx_cs.h            
93
94
95 # ------------------------------------------------------------------------
96 # Build the qa code in its own library
97
98 libusrp_inband_qa_la_SOURCES =          \
99         qa_inband.cc                    \
100         qa_inband_packet_prims.cc       \
101         qa_inband_usrp_server.cc        
102
103 # magic flags
104 libusrp_inband_qa_la_LDFLAGS = $(NO_UNDEFINED) -avoid-version
105
106 libusrp_inband_qa_la_LIBADD =           \
107         libusrp_inband.la               \
108         $(CPPUNIT_LIBS)                 \
109         -lstdc++
110
111 # ------------------------------------------------------------------------
112
113 noinst_PROGRAMS =                       \
114         test_inband                     \
115         test_usrp_inband
116
117 test_inband_SOURCES = test_inband.cc
118 test_inband_LDADD   = libusrp_inband-qa.la
119
120 test_usrp_inband_SOURCES = test_usrp_inband.cc
121 test_usrp_inband_LDADD = libusrp_inband-qa.la
122
123
124 MOSTLYCLEANFILES = \
125         $(BUILT_SOURCES) *~ *.pyc