summaryrefslogtreecommitdiff
path: root/gr-audio-windows
diff options
context:
space:
mode:
Diffstat (limited to 'gr-audio-windows')
-rw-r--r--gr-audio-windows/src/Makefile.swig.gen59
1 files changed, 45 insertions, 14 deletions
diff --git a/gr-audio-windows/src/Makefile.swig.gen b/gr-audio-windows/src/Makefile.swig.gen
index 61215b89b..cf550682e 100644
--- a/gr-audio-windows/src/Makefile.swig.gen
+++ b/gr-audio-windows/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_windows.py audio_windows.cc
+swig_built_sources += audio_windows.py audio_windows_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_windows_swiginclude_HEADERS = \
$(audio_windows_swiginclude_headers)
audio_windows_pylib_LTLIBRARIES = \
- _audio_windows.la
+ _audio_windows_python.la
-_audio_windows_la_SOURCES = \
- audio_windows.cc \
+_audio_windows_python_la_SOURCES = \
+ audio_windows_python.cc \
$(audio_windows_la_swig_sources)
-_audio_windows_la_LIBADD = \
+_audio_windows_python_la_LIBADD = \
$(STD_SWIG_LA_LIB_ADD) \
$(audio_windows_la_swig_libadd)
-_audio_windows_la_LDFLAGS = \
+_audio_windows_python_la_LDFLAGS = \
$(STD_SWIG_LA_LD_FLAGS) \
$(audio_windows_la_swig_ldflags)
-_audio_windows_la_CXXFLAGS = \
+_audio_windows_python_la_CXXFLAGS = \
$(STD_SWIG_CXX_FLAGS) \
$(audio_windows_la_swig_cxxflags)
@@ -105,9 +105,23 @@ audio_windows_python_PYTHON = \
audio_windows.py \
$(audio_windows_python)
+if GUILE
+audio_windows_pylib_LTLIBRARIES += _audio_windows_guile.la
+
+_audio_windows_guile_la_SOURCES = \
+ audio_windows_guile.cc \
+ $(audio_windows_la_swig_sources)
+
+# Guile can use the same flags as python does
+_audio_windows_guile_la_LIBADD = $(_audio_windows_python_la_LIBADD)
+_audio_windows_guile_la_LDFLAGS = $(_audio_windows_python_la_LDFLAGS)
+_audio_windows_guile_la_CXXFLAGS = $(_audio_windows_python_la_CXXFLAGS)
+
+endif # end of GUILE
+
## Entry rule for running SWIG
-audio_windows.h audio_windows.py audio_windows.cc: audio_windows.i
+audio_windows.h audio_windows.py audio_windows_python.cc: audio_windows.i
## This rule will get called only when MAKE decides that one of the
## targets needs to be created or re-created, because:
##
@@ -159,11 +173,12 @@ audio_windows.h audio_windows.py audio_windows.cc: audio_windows.i
##
## Remove the stamp associated with this filename.
##
- rm -f $(DEPDIR)/audio_windows-generate-stamp; \
+ rm -f $(DEPDIR)/audio_windows-generate-*stamp; \
##
## Tell MAKE to run the rule for creating this stamp.
##
- $(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/audio_windows-generate-stamp WHAT=$<; \
+ $(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/audio_windows-generate-python-stamp WHAT=$<; \
+ $(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/audio_windows-generate-guile-stamp WHAT=$<; \
##
## Now that the .cc, .h, and .py files have been (re)created from the
## .i file, future checking of this rule during the same MAKE
@@ -187,11 +202,27 @@ audio_windows.h audio_windows.py audio_windows.cc: audio_windows.i
## Succeed if and only if the first process succeeded; exit this
## process returning the status of the generated stamp.
##
- test -f $(DEPDIR)/audio_windows-generate-stamp; \
+ test -f $(DEPDIR)/audio_windows-generate-python-stamp; \
exit $$?; \
fi;
-$(DEPDIR)/audio_windows-generate-stamp:
+$(DEPDIR)/audio_windows-generate-guile-stamp:
+ if $(SWIG) $(STD_SWIG_GUILE_ARGS) $(audio_windows_swig_args) \
+ -MD -MF $(DEPDIR)/audio_windows.Std \
+ -module audio_windows -o audio_windows_guile.cc $(WHAT); then \
+ if test $(host_os) = mingw32; then \
+ $(RM) $(DEPDIR)/audio_windows.Sd; \
+ $(SED) 's,\\\\,/,g' < $(DEPDIR)/audio_windows.Std \
+ > $(DEPDIR)/audio_windows.Sd; \
+ $(RM) $(DEPDIR)/audio_windows.Std; \
+ $(MV) $(DEPDIR)/audio_windows.Sd $(DEPDIR)/audio_windows.Std; \
+ fi; \
+ else \
+ $(RM) $(DEPDIR)/audio_windows.S*; exit 1; \
+ fi;
+ touch $(DEPDIR)/audio_windows-generate-guile-stamp
+
+$(DEPDIR)/audio_windows-generate-python-stamp:
## This rule will be called only by the first process issuing the
## above rule to succeed in creating the lock directory, after
## removing the actual stamp file in order to guarantee that MAKE will
@@ -202,7 +233,7 @@ $(DEPDIR)/audio_windows-generate-stamp:
##
if $(SWIG) $(STD_SWIG_PYTHON_ARGS) $(audio_windows_swig_args) \
-MD -MF $(DEPDIR)/audio_windows.Std \
- -module audio_windows -o audio_windows.cc $(WHAT); then \
+ -module audio_windows -o audio_windows_python.cc $(WHAT); then \
if test $(host_os) = mingw32; then \
$(RM) $(DEPDIR)/audio_windows.Sd; \
$(SED) 's,\\\\,/,g' < $(DEPDIR)/audio_windows.Std \
@@ -249,7 +280,7 @@ $(DEPDIR)/audio_windows-generate-stamp:
## executing this rule; allows other threads waiting on this process
## to continue.
##
- touch $(DEPDIR)/audio_windows-generate-stamp
+ touch $(DEPDIR)/audio_windows-generate-python-stamp
# KLUDGE: Force runtime include of a SWIG dependency file. This is
# not guaranteed to be portable, but will probably work. If it works,