2 # Copyright 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 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) \
36 $(PYTHON_CPPFLAGS) $(WITH_INCLUDES)
38 # Special swig arguments
39 LOCAL_SWIG_DEFINES_AND_INCLUDES = $(GCELL_INCLUDES)
41 # ----------------------------------------------------------------
43 # ----------------------------------------------------------------
45 # the library for the C++ blocks
46 lib_LTLIBRARIES = libgr_gcell.la
48 libgr_gcell_la_SOURCES = \
54 libgr_gcell_la_LIBADD = \
58 libgr_gcell_la_LDFLAGS = $(NO_UNDEFINED)
61 # ----------------------------------------------------------------
63 # ----------------------------------------------------------------
65 # the library for the swig interface
66 ourlib_LTLIBRARIES = _gcell.la
69 $(srcdir)/gc_job_manager.i \
71 $(srcdir)/gcell_fft_vcc.i
80 swig_built_sources = \
95 _gcell_la_LDFLAGS = $(NO_UNDEFINED) -module -avoid-version
97 _gcell_la_CXXFLAGS = @swig_CXXFLAGS@
99 swiginclude_HEADERS = \
102 #gcell.cc gcell.py: $(ALL_IFILES)
103 # $(SWIG) $(STD_SWIG_PYTHON_ARGS) -module gcell \
104 # -o gcell.cc $(LOCAL_IFILES)
106 # KLUDGE: Force runtime include of gcell.d dependency file.
107 # This is not guaranteed to be portable, but will probably work.
108 # If it works, we have accurate dependencies for our swig stuff, which is good.
109 @am__include@ @am__quote@./gcell.d@am__quote@
111 gcell.py gcell.h: gcell.cc
113 gcell.cc : $(srcdir)/gcell.i $(GNURADIO_I)
114 if $(SWIG) $(STD_SWIG_PYTHON_ARGS) -MMD -MF gcell.Td -module gcell \
115 -o gcell.cc $(srcdir)/gcell.i ;\
116 then if test $(host_os) = mingw32; \
117 then sed 's,\\\\,/,g' <gcell.Td >gcell.d; rm -f gcell.Td; \
118 else mv -f gcell.Td gcell.d; fi \
119 else rm -f gcell.Td; exit 1; fi
125 # ----------------------------------------------------------------
128 $(swig_built_sources) *~ *.pyc
130 # Don't distribute output of swig
132 @for file in $(swig_built_sources); do echo $(RM) $(distdir)/$$file; done
133 @for file in $(swig_built_sources); do $(RM) $(distdir)/$$file; done