2 # Copyright 2004,2005,2006,2008,2009 Free Software Foundation, Inc.
4 # This file is part of GNU Radio
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)
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.
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.
22 include $(top_srcdir)/Makefile.common
24 # ----------------------------------------------------------------
25 # The straight C++ library
28 $(STD_DEFINES_AND_INCLUDES) \
36 libgnuradio_usrp_la_SOURCES = \
45 libgnuradio_usrp_la_LIBADD = \
49 libgnuradio_usrp_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0
60 # ----------------------------------------------------------------
61 # The SWIG library and Python modules
63 # Install this stuff so that it ends up as the gnuradio.usrp module
64 # This usually ends up at:
65 # ${prefix}/lib/python${python_version}/site-packages/gnuradio/usrp
67 ourpythondir = $(grpythondir)/usrp
68 ourlibdir = $(grpyexecdir)/usrp
76 $(srcdir)/usrp_base.i \
77 $(srcdir)/usrp_source_base.i \
78 $(srcdir)/usrp_source_c.i \
79 $(srcdir)/usrp_source_s.i \
80 $(srcdir)/usrp_sink_base.i \
81 $(srcdir)/usrp_sink_c.i \
82 $(srcdir)/usrp_sink_s.i \
83 $(srcdir)/usrp_standard.i
92 ourlib_LTLIBRARIES = \
99 _usrp_swig_la_SOURCES = \
102 _usrp_swig_la_LIBADD = \
106 _usrp_swig_la_LDFLAGS = $(NO_UNDEFINED) -module -avoid-version
108 _usrp_swig_la_CXXFLAGS = @swig_CXXFLAGS@
110 # Special swig arguments
111 LOCAL_SWIG_DEFINES_AND_INCLUDES = $(USRP_INCLUDES)
113 usrp_swig.cc usrp_swig.py: $(ALL_IFILES)
114 $(SWIG) $(STD_SWIG_PYTHON_ARGS) -module usrp_swig \
115 -o usrp_swig.cc $(srcdir)/usrp.i
120 swiginclude_HEADERS = \
123 # Don't distribute output of swig
125 @for file in $(BUILT_SOURCES); do echo $(RM) $(distdir)/$$file; done
126 @for file in $(BUILT_SOURCES); do $(RM) $(distdir)/$$file; done
128 # ----------------------------------------------------------------
129 # Misc. build/installation activities
131 MOSTLYCLEANFILES = $(BUILT_SOURCES) *~ *.pyc
132 EXTRA_DIST = run_tests.in