Imported Upstream version 3.2.2
[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 TESTS = run_tests
38 DISTCLEANFILES = run_tests
39
40 # ----------------------------------------------------------------------
41 # C++ block API interface librar(ies)
42 #
43 # libgr-usrp.so
44 # ----------------------------------------------------------------------
45 AM_CPPFLAGS = \
46         $(STD_DEFINES_AND_INCLUDES)  \
47         $(GRUEL_INCLUDES) \
48         $(PYTHON_CPPFLAGS) \
49         $(USRP2_INCLUDES) \
50         $(WITH_INCLUDES)
51
52 lib_LTLIBRARIES = libgnuradio-usrp2.la
53
54 libgnuradio_usrp2_la_SOURCES = \
55         rx_16sc_handler.cc \
56         rx_32fc_handler.cc \
57         usrp2_base.cc \
58         usrp2_source_base.cc \
59         usrp2_source_16sc.cc \
60         usrp2_source_32fc.cc \
61         usrp2_sink_base.cc \
62         usrp2_sink_16sc.cc \
63         usrp2_sink_32fc.cc
64
65 libgnuradio_usrp2_la_LIBADD = \
66         $(USRP2_LA) \
67         $(GNURADIO_CORE_LA) 
68
69 grinclude_HEADERS = \
70         usrp2_base.h \
71         usrp2_source_base.h \
72         usrp2_source_32fc.h \
73         usrp2_source_16sc.h \
74         usrp2_sink_base.h \
75         usrp2_sink_16sc.h \
76         usrp2_sink_32fc.h
77
78 noinst_HEADERS = \
79         rx_16sc_handler.h \
80         rx_32fc_handler.h
81
82 # ----------------------------------------------------------------------
83 # Python SWIG wrapper around C++ library
84 #
85 # usrp2.py
86 # _usrp2.so
87 # ----------------------------------------------------------------------
88
89 TOP_SWIG_IFILES =               \
90         usrp2.i
91
92 # Install so that they end up available as:
93 #   import gnuradio.usrp2
94 # This ends up at:
95 #   ${prefix}/lib/python${python_version}/site-packages/gnuradio
96 usrp2_pythondir_category =      \
97         gnuradio
98
99 # additional arguments to the SWIG command
100 usrp2_swig_args =               \
101         $(USRP2_INCLUDES)
102
103 # additional libraries for linking with the SWIG-generated library
104 usrp2_la_swig_libadd =          \
105         libgnuradio-usrp2.la
106
107 include $(top_srcdir)/Makefile.swig
108
109 # add some of the variables generated inside the Makefile.swig.gen
110 BUILT_SOURCES = $(swig_built_sources)
111
112 # Do not distribute the output of SWIG
113 no_dist_files = $(swig_built_sources)