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 $(top_srcdir)/gr-gcell/src/gcell.i
77 swig_built_sources = \
92 _gcell_la_LDFLAGS = $(NO_UNDEFINED) -module -avoid-version
95 swiginclude_HEADERS = \
98 #gcell.cc gcell.py: $(LOCAL_IFILES) $(NON_LOCAL_IFILES)
99 # $(SWIG) $(SWIGPYTHONARGS) -module gcell -o gcell.cc $(LOCAL_IFILES)
101 # KLUDGE: Force runtime include of gcell.d dependency file.
102 # This is not guaranteed to be portable, but will probably work.
103 # If it works, we have accurate dependencies for our swig stuff, which is good.
104 @am__include@ @am__quote@./gcell.d@am__quote@
106 gcell.py gcell.h: gcell.cc
108 gcell.cc : gcell.i $(GNURADIO_I)
109 if $(SWIG) $(SWIGPYTHONARGS) -MMD -MF gcell.Td -module gcell -o gcell.cc $(srcdir)/gcell.i ;\
110 then if test $(host_os) = mingw32; \
111 then sed 's,\\\\,/,g' <gcell.Td >gcell.d; rm -f gcell.Td; \
112 else mv -f gcell.Td gcell.d; fi \
113 else rm -f gcell.Td; exit 1; fi
119 # ----------------------------------------------------------------
122 $(swig_built_sources) *~ *.pyc
124 # Don't distribute output of swig
126 @for file in $(swig_built_sources); do echo $(RM) $(distdir)/$$file; done
127 @for file in $(swig_built_sources); do $(RM) $(distdir)/$$file; done