summaryrefslogtreecommitdiff
path: root/gr-audio-alsa/src/Makefile.swig.gen
diff options
context:
space:
mode:
Diffstat (limited to 'gr-audio-alsa/src/Makefile.swig.gen')
-rw-r--r--gr-audio-alsa/src/Makefile.swig.gen36
1 files changed, 26 insertions, 10 deletions
diff --git a/gr-audio-alsa/src/Makefile.swig.gen b/gr-audio-alsa/src/Makefile.swig.gen
index 16342ac27..cede38fd0 100644
--- a/gr-audio-alsa/src/Makefile.swig.gen
+++ b/gr-audio-alsa/src/Makefile.swig.gen
@@ -72,7 +72,7 @@ MOSTLYCLEANFILES += $(DEPDIR)/*.S*
## .h file is sometimes built, but not always ... so that one has to
## be added manually by the including Makefile.am .
-swig_built_sources += audio_alsa.py audio_alsa-python.cc
+swig_built_sources += audio_alsa.py audio_alsa_python.cc
## Various SWIG variables. These can be overloaded in the including
## Makefile.am by setting the variable value there, then including
@@ -83,21 +83,21 @@ audio_alsa_swiginclude_HEADERS = \
$(audio_alsa_swiginclude_headers)
audio_alsa_pylib_LTLIBRARIES = \
- _audio_alsa.la
+ _audio_alsa_python.la
-_audio_alsa_la_SOURCES = \
- audio_alsa-python.cc \
+_audio_alsa_python_la_SOURCES = \
+ audio_alsa_python.cc \
$(audio_alsa_la_swig_sources)
-_audio_alsa_la_LIBADD = \
+_audio_alsa_python_la_LIBADD = \
$(STD_SWIG_LA_LIB_ADD) \
$(audio_alsa_la_swig_libadd)
-_audio_alsa_la_LDFLAGS = \
+_audio_alsa_python_la_LDFLAGS = \
$(STD_SWIG_LA_LD_FLAGS) \
$(audio_alsa_la_swig_ldflags)
-_audio_alsa_la_CXXFLAGS = \
+_audio_alsa_python_la_CXXFLAGS = \
$(STD_SWIG_CXX_FLAGS) \
$(audio_alsa_la_swig_cxxflags)
@@ -105,9 +105,23 @@ audio_alsa_python_PYTHON = \
audio_alsa.py \
$(audio_alsa_python)
+if GUILE
+audio_alsa_pylib_LTLIBRARIES += _audio_alsa_guile.la
+
+_audio_alsa_guile_la_SOURCES = \
+ audio_alsa_guile.cc \
+ $(audio_alsa_la_swig_sources)
+
+# Guile can use the same flags as python does
+_audio_alsa_guile_la_LIBADD = $(_audio_alsa_python_la_LIBADD)
+_audio_alsa_guile_la_LDFLAGS = $(_audio_alsa_python_la_LDFLAGS)
+_audio_alsa_guile_la_CXXFLAGS = $(_audio_alsa_python_la_CXXFLAGS)
+
+endif # end of GUILE
+
## Entry rule for running SWIG
-audio_alsa.h audio_alsa.py audio_alsa-python.cc: audio_alsa.i
+audio_alsa.h audio_alsa.py audio_alsa_python.cc: audio_alsa.i
## This rule will get called only when MAKE decides that one of the
## targets needs to be created or re-created, because:
##
@@ -193,9 +207,10 @@ audio_alsa.h audio_alsa.py audio_alsa-python.cc: audio_alsa.i
fi;
$(DEPDIR)/audio_alsa-generate-guile-stamp:
+if GUILE
if $(SWIG) $(STD_SWIG_GUILE_ARGS) $(audio_alsa_swig_args) \
-MD -MF $(DEPDIR)/audio_alsa.Std \
- -module audio_alsa -o audio_alsa-guile.cc $(WHAT); then \
+ -module audio_alsa -o audio_alsa_guile.cc $(WHAT); then \
if test $(host_os) = mingw32; then \
$(RM) $(DEPDIR)/audio_alsa.Sd; \
$(SED) 's,\\\\,/,g' < $(DEPDIR)/audio_alsa.Std \
@@ -207,6 +222,7 @@ $(DEPDIR)/audio_alsa-generate-guile-stamp:
$(RM) $(DEPDIR)/audio_alsa.S*; exit 1; \
fi;
touch $(DEPDIR)/audio_alsa-generate-guile-stamp
+endif
$(DEPDIR)/audio_alsa-generate-python-stamp:
## This rule will be called only by the first process issuing the
@@ -219,7 +235,7 @@ $(DEPDIR)/audio_alsa-generate-python-stamp:
##
if $(SWIG) $(STD_SWIG_PYTHON_ARGS) $(audio_alsa_swig_args) \
-MD -MF $(DEPDIR)/audio_alsa.Std \
- -module audio_alsa -o audio_alsa-python.cc $(WHAT); then \
+ -module audio_alsa -o audio_alsa_python.cc $(WHAT); then \
if test $(host_os) = mingw32; then \
$(RM) $(DEPDIR)/audio_alsa.Sd; \
$(SED) 's,\\\\,/,g' < $(DEPDIR)/audio_alsa.Std \