summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib
diff options
context:
space:
mode:
authorRob Savoye2010-10-21 11:33:04 -0600
committerEric Blossom2010-11-10 12:10:46 -0800
commit75aed9281e0f918fe11a3c040e6b46387dd676c5 (patch)
tree4b1e484904fa7e09607de12e97b6a1bf70bcb0d2 /gnuradio-core/src/lib
parent5650ee3c123dcd819542fbba1719e89a09ece399 (diff)
downloadgnuradio-75aed9281e0f918fe11a3c040e6b46387dd676c5.tar.gz
gnuradio-75aed9281e0f918fe11a3c040e6b46387dd676c5.tar.bz2
gnuradio-75aed9281e0f918fe11a3c040e6b46387dd676c5.zip
add comments
Diffstat (limited to 'gnuradio-core/src/lib')
-rw-r--r--gnuradio-core/src/lib/swig/Makefile.am17
1 files changed, 12 insertions, 5 deletions
diff --git a/gnuradio-core/src/lib/swig/Makefile.am b/gnuradio-core/src/lib/swig/Makefile.am
index 5f55e63b5..21bfe6761 100644
--- a/gnuradio-core/src/lib/swig/Makefile.am
+++ b/gnuradio-core/src/lib/swig/Makefile.am
@@ -22,8 +22,6 @@
include $(top_srcdir)/Makefile.common
include $(top_srcdir)/Makefile.swig
-# VPATH += python guile
-
BUILT_SOURCES = $(grinclude_HEADERS) $(swig_built_sources)
CLEANFILES = python/gnuradio*
if GUILE
@@ -114,16 +112,25 @@ endif
# Do not distribute the output of SWIG
no_dist_files = $(swig_built_sources)
-# Compile a .i to what guile needs
+# Compile a .i to what guile needs. We use -o to set the output file name,
+# or even with -outdir guile in SWIG_GUILE_ARGS, swig keeps putting a
+# gnuradio_swig_py_*_wrap.cxx in the source directory.
+
+## SWIG suffixes for automake to know about
+SUFFIXES = .i .scm .pyvi
+
+if GUILE
.i.scm:
+ @echo "Compile .i to .scm"
@test -d "guile" || $(mkinstalldirs) "guile"
$(SWIG) $(STD_SWIG_GUILE_ARGS) $($*_swig_args) \
-module $* -o guile/$*.cc $<
+# -MD -MF guile/$(DEPDIR)/$*.Std
+endif
# Compile a .i file to what python needs
.i.py:
+ @echo "Compile .i to .py"
@test -d "python" || $(mkinstalldirs) "python"
$(SWIG) $(STD_SWIG_PYTHON_ARGS) $($*_swig_args) \
- -MD -MF python/$(DEPDIR)/$*.Std \
-module $* -o python/$*.cc -oh python/$*.h $<
-