Merged r11377:11390 from jcorgan/usrp-headers in to trunk.
[debian/gnuradio] / usrp / limbo / inband / Makefile.am
1 #
2 # Copyright 2007,2008 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 AM_CPPFLAGS =   \
24         $(DEFINES) $(OMNITHREAD_INCLUDES) $(PMT_INCLUDES) $(MBLOCK_INCLUDES) \
25         $(USRP_INCLUDES) $(BOOST_CPPFLAGS) $(CPPUNIT_INCLUDES) \
26         -I$(srcdir)/../../apps-inband $(WITH_INCLUDES)
27
28 TESTS = test_inband
29
30 EXTRA_DIST =                            \
31         usrp_server.mbh                 \
32         usrp_interface.mbh 
33
34 lib_LTLIBRARIES =                       \
35         libusrp-inband.la               \
36         libusrp-inband-qa.la
37
38 # ------------------------------------------------------------------------
39 # Build the inband library
40
41 BUILT_SOURCES =                         \
42         usrp_server_mbh.cc              \
43         usrp_interface_mbh.cc 
44
45 usrp_server_mbh.cc : usrp_server.mbh
46         $(COMPILE_MBH) $(srcdir)/usrp_server.mbh usrp_server_mbh.cc
47
48 usrp_interface_mbh.cc : usrp_interface.mbh
49         $(COMPILE_MBH) $(srcdir)/usrp_interface.mbh usrp_interface_mbh.cc
50
51 libusrp_inband_la_SOURCES =             \
52         $(BUILT_SOURCES)                \
53         $(srcdir)/../../apps-inband/ui_sincos.c \
54         usrp_inband_usb_packet.cc       \
55         usrp_rx.cc                      \
56         usrp_rx_stub.cc                 \
57         usrp_server.cc                  \
58         usrp_tx.cc                      \
59         usrp_tx_stub.cc                 \
60         usrp_usb_interface.cc           
61
62 libusrp_inband_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0
63
64 libusrp_inband_la_LIBADD =              \
65         $(MBLOCK_LA)                    \
66         $(USRP_LA)                      \
67         -lstdc++
68
69 include_HEADERS =                       \
70         usrp_inband_usb_packet.h        \
71         usrp_rx.h                       \
72         usrp_rx_stub.h                  \
73         usrp_server.h                   \
74         usrp_tx.h                       \
75         usrp_tx_stub.h                  \
76         usrp_usb_interface.h
77
78 noinst_HEADERS =                        \
79         qa_inband.h                     \
80         qa_inband_packet_prims.h        \
81         qa_inband_usrp_server.h         \
82         symbols_usrp_channel.h          \
83         symbols_usrp_interface_cs.h     \
84         symbols_usrp_low_level_cs.h     \
85         symbols_usrp_rx.h               \
86         symbols_usrp_rx_cs.h            \
87         symbols_usrp_server_cs.h        \
88         symbols_usrp_tx.h               \
89         symbols_usrp_tx_cs.h
90
91 # ------------------------------------------------------------------------
92 # Build the qa code in its own library
93
94 libusrp_inband_qa_la_SOURCES =          \
95         qa_inband.cc                    \
96         qa_inband_packet_prims.cc       \
97         qa_inband_usrp_server.cc
98
99 # magic flags
100 libusrp_inband_qa_la_LDFLAGS = $(NO_UNDEFINED) -avoid-version
101
102 libusrp_inband_qa_la_LIBADD =           \
103         libusrp-inband.la               \
104         $(PMT_LA)                       \
105         $(CPPUNIT_LIBS)                 \
106         -lstdc++
107
108 # ------------------------------------------------------------------------
109
110 noinst_PROGRAMS =                       \
111         test_inband
112
113 test_inband_SOURCES = test_inband.cc
114 test_inband_LDADD   = libusrp-inband-qa.la