2 # Copyright 2008 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 2, 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.
23 include $(top_srcdir)/Makefile.common
25 # Install this stuff so that it ends up as the gnuradio.msdd module
26 # This usually ends up at:
27 # ${prefix}/lib/python${python_version}/site-packages/gnuradio
29 ourpythondir = $(grpythondir)
30 ourlibdir = $(grpyexecdir)
33 $(STD_DEFINES_AND_INCLUDES) \
38 noinst_LTLIBRARIES = libmsdd.la
40 libmsdd_la_SOURCES = \
45 # ------------------------------------------------------------------------
46 # This is the swig-ish part of the Makefile.
47 # It builds the msdd module which we'll load into python
48 # ------------------------------------------------------------------------
50 SWIGCPPPYTHONARGS = -fvirtual -python -modern $(PYTHON_CPPFLAGS) \
51 $(STD_DEFINES_AND_INCLUDES) $(WITH_SWIG_INCLUDES) $(WITH_INCLUDES)
58 $(top_srcdir)/gnuradio-core/src/lib/swig/gnuradio.i
61 $(top_srcdir)/gr-msdd6000/src/lib/msdd.i
64 # These files are built by SWIG. The first is the C++ glue.
65 # # The second is the python wrapper that loads the _msdd shared library
66 # # and knows how to call our extensions.
70 swig_built_sources = \
74 # This gets msdd.py installed in the right place
80 ourlib_LTLIBRARIES = _msdd.la
82 # These are the source files that go into the shared library
87 _msdd_la_LDFLAGS = $(NO_UNDEFINED) -module -avoid-version
89 # link the library against some comon swig runtime code and the
90 # c++ standard library
98 msdd.cc msdd.py: msdd.i $(ALL_FILES)
99 $(SWIG) $(SWIGCPPPYTHONARGS) -module msdd -o msdd.cc $(LOCAL_IFILES)
101 # These headers get installed in ${prefix}/include/gnuradio
102 grinclude_HEADERS = \
103 msdd_buffer_copy_behaviors.h \
108 # These swig headers get installed in ${prefix}/include/gnuradio/swig
109 swiginclude_HEADERS = \
112 MOSTLYCLEANFILES = $(BUILT_SOURCES) *.pyc *~
114 # Don't distribute output of swig
116 @for file in $(BUILT_SOURCES); do echo $(RM) $(distdir)/$$file; done
117 @for file in $(BUILT_SOURCES); do $(RM) $(distdir)/$$file; done