2 # Copyright 2004,2005,2006 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., 59 Temple Place - Suite 330,
19 # Boston, MA 02111-1307, USA.
22 include $(top_srcdir)/Makefile.common
24 # Install this stuff so that it ends up as the gnuradio.ezdop module
25 # This usually ends up at:
26 # ${prefix}/lib/python${python_version}/site-packages/gnuradio
28 ourpythondir = $(grpythondir)
29 ourlibdir = $(grpyexecdir)
32 -I$(top_srcdir)/ezdop/src/firmware \
33 -I$(top_srcdir)/ezdop/src/host/ezdop
35 EZDOP_LIBS = -L$(top_builddir)/ezdop/src/host/ezdop/ -lezdop
38 $(STD_DEFINES_AND_INCLUDES) \
42 SWIGPYTHONARGS = $(SWIGPYTHONFLAGS) $(STD_DEFINES_AND_INCLUDES)
53 $(top_srcdir)/gr-ezdop/src/lib/ezdop.i
55 # These files are built by SWIG. The first is the C++ glue.
56 # The second is the python wrapper that loads the _ezdop shared library
57 # and knows how to call our extensions.
63 # This gets ezdop.py installed in the right place
67 ourlib_LTLIBRARIES = _ezdop.la
69 # These are the source files that go into the shared library
75 _ezdop_la_LDFLAGS = $(NO_UNDEFINED) -module -avoid-version
77 # link the library against some comon swig runtime code and the
78 # c++ standard library
81 $(GNURADIO_CORE_LIBS) \
85 ezdop.cc ezdop.py: $(ALL_IFILES)
86 $(SWIG) $(SWIGPYTHONARGS) -module ezdop -o ezdop.cc $(LOCAL_IFILES)
88 # These headers get installed in ${prefix}/include/gnuradio
93 # These swig headers get installed in ${prefix}/include/gnuradio/swig
94 swiginclude_HEADERS = \
97 MOSTLYCLEANFILES = $(BUILT_SOURCES) *.pyc
99 # Don't distribute output of swig
101 @for file in $(BUILT_SOURCES); do echo $(RM) $(distdir)/$$file; done
102 @for file in $(BUILT_SOURCES); do $(RM) $(distdir)/$$file; done