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 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 along
17 # with this program; if not, write to the Free Software Foundation, Inc.,
18 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 include $(top_srcdir)/Makefile.common
25 EXTRA_DIST = run_tests.in
29 # Install the python portion so that it ends up as the gnuradio.gcell module
30 # ${prefix}/lib/python${python_version}/site-packages/gnuradio
32 ourpythondir = $(grpythondir)
33 ourlibdir = $(grpyexecdir)
35 AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(GCELL_INCLUDES) $(PYTHON_CPPFLAGS) $(WITH_INCLUDES)
37 SWIGPYTHONARGS = $(SWIGPYTHONFLAGS) $(STD_DEFINES_AND_INCLUDES) $(GCELL_INCLUDES) \
38 $(WITH_SWIG_INCLUDES) $(WITH_INCLUDES)
40 # ----------------------------------------------------------------
42 # ----------------------------------------------------------------
44 # the library for the C++ blocks
45 lib_LTLIBRARIES = libgr_gcell.la
47 libgr_gcell_la_SOURCES = \
53 libgr_gcell_la_LIBADD = \
57 libgr_gcell_la_LDFLAGS = $(NO_UNDEFINED)
60 # ----------------------------------------------------------------
62 # ----------------------------------------------------------------
64 # the library for the swig interface
65 ourlib_LTLIBRARIES = _gcell.la
68 $(srcdir)/gc_job_manager.i \
70 $(srcdir)/gcell_fft_vcc.i
79 swig_built_sources = \
94 _gcell_la_LDFLAGS = $(NO_UNDEFINED) -module -avoid-version
97 swiginclude_HEADERS = \
100 #gcell.cc gcell.py: $(LOCAL_IFILES) $(NON_LOCAL_IFILES)
101 # $(SWIG) $(SWIGPYTHONARGS) -module gcell -o gcell.cc $(LOCAL_IFILES)
103 # KLUDGE: Force runtime include of gcell.d dependency file.
104 # This is not guaranteed to be portable, but will probably work.
105 # If it works, we have accurate dependencies for our swig stuff, which is good.
106 @am__include@ @am__quote@./gcell.d@am__quote@
108 gcell.py gcell.h: gcell.cc
110 gcell.cc : gcell.i $(GNURADIO_I)
111 if $(SWIG) $(SWIGPYTHONARGS) -MMD -MF gcell.Td -module gcell -o gcell.cc $(srcdir)/gcell.i ;\
112 then if test $(host_os) = mingw32; \
113 then sed 's,\\\\,/,g' <gcell.Td >gcell.d; rm -f gcell.Td; \
114 else mv -f gcell.Td gcell.d; fi \
115 else rm -f gcell.Td; exit 1; fi
121 # ----------------------------------------------------------------
124 $(swig_built_sources) *~ *.pyc
126 # Don't distribute output of swig
128 @for file in $(swig_built_sources); do echo $(RM) $(distdir)/$$file; done
129 @for file in $(swig_built_sources); do $(RM) $(distdir)/$$file; done