Merged r11123:11148 from jcorgan/np into trunk.
[debian/gnuradio] / gr-usrp2 / src / Makefile.am
1 #
2 # Copyright 2004,2005,2006,2008,2009 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
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 # ----------------------------------------------------------------------
25 # Local Python files, not installed
26 #
27 # qa_usrp2.py
28 # ----------------------------------------------------------------------
29
30 noinst_PYTHON = qa_usrp2.py
31
32 # ----------------------------------------------------------------------
33 # Miscellaneous build operations
34 # ----------------------------------------------------------------------
35
36 EXTRA_DIST = run_tests.in
37 DISTCLEANFILES = run_tests
38
39 # ----------------------------------------------------------------------
40 # C++ block API interface librar(ies)
41 #
42 # libgr-usrp.so
43 # ----------------------------------------------------------------------
44 AM_CPPFLAGS = \
45         $(STD_DEFINES_AND_INCLUDES)  \
46         $(GRUEL_INCLUDES) \
47         $(PYTHON_CPPFLAGS) \
48         $(USRP2_INCLUDES) \
49         $(WITH_INCLUDES)
50
51 lib_LTLIBRARIES = libgnuradio-usrp2.la
52
53 libgnuradio_usrp2_la_SOURCES = \
54         rx_16sc_handler.cc \
55         rx_32fc_handler.cc \
56         usrp2_base.cc \
57         usrp2_source_base.cc \
58         usrp2_source_16sc.cc \
59         usrp2_source_32fc.cc \
60         usrp2_sink_base.cc \
61         usrp2_sink_16sc.cc \
62         usrp2_sink_32fc.cc
63
64 libgnuradio_usrp2_la_LIBADD = \
65         $(USRP2_LA) \
66         $(GNURADIO_CORE_LA) 
67
68 grinclude_HEADERS = \
69         usrp2_base.h \
70         usrp2_source_base.h \
71         usrp2_source_32fc.h \
72         usrp2_source_16sc.h \
73         usrp2_sink_base.h \
74         usrp2_sink_16sc.h \
75         usrp2_sink_32fc.h
76
77 noinst_HEADERS = \
78         rx_16sc_handler.h \
79         rx_32fc_handler.h
80
81 if PYTHON
82 # ----------------------------------------------------------------------
83 # Python SWIG wrapper around C++ library
84 #
85 # usrp2.py
86 # _usrp2.so
87 # ----------------------------------------------------------------------
88 TESTS = run_tests
89
90 TOP_SWIG_IFILES =               \
91         usrp2.i
92
93 # Install so that they end up available as:
94 #   import gnuradio.usrp2
95 # This ends up at:
96 #   ${prefix}/lib/python${python_version}/site-packages/gnuradio
97 usrp2_pythondir_category =      \
98         gnuradio
99
100 # additional arguments to the SWIG command
101 usrp2_swig_args =               \
102         $(USRP2_INCLUDES)
103
104 # additional libraries for linking with the SWIG-generated library
105 usrp2_la_swig_libadd =          \
106         libgnuradio-usrp2.la
107
108 include $(top_srcdir)/Makefile.swig
109
110 # add some of the variables generated inside the Makefile.swig.gen
111 BUILT_SOURCES = $(swig_built_sources)
112
113 # Do not distribute the output of SWIG
114 no_dist_files = $(swig_built_sources)
115 endif