Imported Upstream version 3.2.2
[debian/gnuradio] / gr-usrp / 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 # Misc. build/installation activities
26
27 EXTRA_DIST = run_tests.in
28
29 TESTS = run_tests
30
31 DISTCLEANFILES = run_tests
32
33 noinst_PYTHON = qa_usrp.py
34
35 # ----------------------------------------------------------------
36 # The straight C++ library
37
38 AM_CPPFLAGS = \
39         $(STD_DEFINES_AND_INCLUDES) \
40         $(PYTHON_CPPFLAGS) \
41         $(USRP_INCLUDES) \
42         $(WITH_INCLUDES)
43
44 lib_LTLIBRARIES = \
45         libgnuradio-usrp.la
46
47 libgnuradio_usrp_la_SOURCES = \
48         usrp_base.cc \
49         usrp_sink_base.cc \
50         usrp_sink_c.cc \
51         usrp_sink_s.cc \
52         usrp_source_base.cc \
53         usrp_source_c.cc \
54         usrp_source_s.cc
55
56 libgnuradio_usrp_la_LIBADD = \
57         $(GNURADIO_CORE_LA) \
58         $(USRP_LA)                      
59
60 libgnuradio_usrp_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0
61
62 grinclude_HEADERS = \
63         usrp_base.h \
64         usrp_sink_base.h \
65         usrp_sink_c.h \
66         usrp_sink_s.h \
67         usrp_source_base.h \
68         usrp_source_c.h \
69         usrp_source_s.h
70
71 # ----------------------------------------------------------------
72 # The SWIG library
73
74 TOP_SWIG_IFILES =               \
75         usrp_swig.i
76
77 # Install so that they end up available as:
78 #   import gnuradio.usrp
79 # This ends up at:
80 #   ${prefix}/lib/python${python_version}/site-packages/gnuradio/usrp
81 usrp_swig_pythondir_category =  \
82         gnuradio/usrp
83
84 # additional arguments to the SWIG command
85 usrp_swig_swig_args =           \
86         $(USRP_INCLUDES)
87
88 # additional libraries for linking with the SWIG-generated library
89 usrp_swig_la_swig_libadd =      \
90         libgnuradio-usrp.la
91
92 # additional Python files to be installed along with the SWIG-generated one
93 usrp_swig_python =              \
94         __init__.py
95
96 # additional SWIG files to be installed
97 usrp_swig_swiginclude_headers = \
98         usrp_base.i             \
99         usrp_source_base.i      \
100         usrp_source_c.i         \
101         usrp_source_s.i         \
102         usrp_sink_base.i        \
103         usrp_sink_c.i           \
104         usrp_sink_s.i           \
105         usrp_standard.i
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)