summaryrefslogtreecommitdiff
path: root/gnuradio-core
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-core')
-rw-r--r--gnuradio-core/src/lib/swig/Makefile.am24
1 files changed, 8 insertions, 16 deletions
diff --git a/gnuradio-core/src/lib/swig/Makefile.am b/gnuradio-core/src/lib/swig/Makefile.am
index 16b5d677e..e990d998e 100644
--- a/gnuradio-core/src/lib/swig/Makefile.am
+++ b/gnuradio-core/src/lib/swig/Makefile.am
@@ -56,8 +56,6 @@ nobase_swiginclude_HEADERS = \
guile/std_complex.i \
guile/std_vector.i
-
-if PYTHON
AM_CPPFLAGS = -I$(srcdir) $(STD_DEFINES_AND_INCLUDES) $(PYTHON_CPPFLAGS) \
$(WITH_INCLUDES)
@@ -70,8 +68,8 @@ ourpython_PYTHON = gnuradio_core.py
# ----------------------------------------------------------------
# FIXME As of swig 1.3.31, this still seems to be required...
-
-gnuradio_swig_bug_workaround.h : gnuradio_core_runtime.py $(srcdir)/gen-swig-bug-fix
+if PYTHON
+gnuradio_swig_bug_workaround.h: gnuradio_core_runtime.py $(srcdir)/gen-swig-bug-fix
$(PYTHON) $(srcdir)/gen-swig-bug-fix python/gnuradio_core_runtime.cc $@
# C/C++ headers get installed in ${prefix}/include/gnuradio
@@ -98,19 +96,13 @@ gnuradio_core_hier_la_swig_libadd = $(GNURADIO_CORE_LA)
# add some of the variables generated inside the Makefile.swig
-# include the SWIG-generated .h files in the BUILT SOURCES, since they
-# aren't by default when using Makefile.swig; order doesn't matter.
-PYTHON_GEN = $(foreach HFILE,$(TOP_SWIG_IFILES), $(subst .i,.py,$(HFILE)))
-swig_built_sources += $(PYTHON_GEN)
-endif # end of if python
+endif # end of python
-if GUILE
-SWIG_GUILE_FLAGS += -DIN_GNURADIO_CORE
-#GUILE_GEN = $(foreach HFILE,$(TOP_SWIG_IFILES), $(patsubst %.i,%.scm,$(HFILE)))
-GUILE_GEN = $(foreach HFILE,$(TOP_SWIG_IFILES), $(patsubst %.i,gnuradio/%.scm,$(HFILE)))
-# GUILE_GEN_STAMPS = $(filter %.scm,$(TOP_SWIG_IFILES))
-swig_built_sources += $(GUILE_GEN)
-endif
+if PYTHON
+else
+gnuradio_swig_bug_workaround.h:
+ @touch gnuradio_swig_bug_workaround.h
+endif # end of guile
# Do not distribute the output of SWIG
no_dist_files = $(swig_built_sources)