summaryrefslogtreecommitdiff
path: root/gr-video-sdl
diff options
context:
space:
mode:
Diffstat (limited to 'gr-video-sdl')
-rw-r--r--gr-video-sdl/src/Makefile.swig.gen51
1 files changed, 44 insertions, 7 deletions
diff --git a/gr-video-sdl/src/Makefile.swig.gen b/gr-video-sdl/src/Makefile.swig.gen
index 57e78cb07..729d759a1 100644
--- a/gr-video-sdl/src/Makefile.swig.gen
+++ b/gr-video-sdl/src/Makefile.swig.gen
@@ -38,6 +38,16 @@ video_sdl_pylibdir_category ?= $(video_sdl_pythondir_category)
video_sdl_pythondir = $(pythondir)/$(video_sdl_pythondir_category)
video_sdl_pylibdir = $(pyexecdir)/$(video_sdl_pylibdir_category)
+# The .so libraries for the guile modules get installed whereever guile
+# is installed, usually /usr/lib/guile/gnuradio/
+# FIXME: determince whether these should be installed with gnuradio.
+video_sdl_scmlibdir = @GUILE_PKLIBDIR@/gnuradio
+
+# The scm files for the guile modules get installed where ever guile
+# is installed, usually /usr/share/guile/site/video_sdl
+# FIXME: determince whether these should be installed with gnuradio.
+video_sdl_scmdir = @GUILE_PKDATADIR@/gnuradio
+
## SWIG headers are always installed into the same directory.
video_sdl_swigincludedir = $(swigincludedir)
@@ -73,6 +83,9 @@ MOSTLYCLEANFILES += $(DEPDIR)/*.S*
## be added manually by the including Makefile.am .
swig_built_sources += video_sdl.py video_sdl_python.cc
+if GUILE
+swig_built_sources += video_sdl.scm video_sdl_guile.cc
+endif
## Various SWIG variables. These can be overloaded in the including
## Makefile.am by setting the variable value there, then including
@@ -106,11 +119,11 @@ video_sdl_python_PYTHON = \
$(video_sdl_python)
if GUILE
-video_sdl_pylib_LTLIBRARIES += _video_sdl_guile.la
-
+video_sdl_scmlib_LTLIBRARIES = _video_sdl_guile.la
_video_sdl_guile_la_SOURCES = \
- video_sdl_guile.cc \
+ video_sdl_guile.cc \
$(video_sdl_la_swig_sources)
+video_sdl_scm_DATA = video_sdl.scm
# Guile can use the same flags as python does
_video_sdl_guile_la_LIBADD = $(_video_sdl_python_la_LIBADD)
@@ -121,7 +134,8 @@ endif # end of GUILE
## Entry rule for running SWIG
-video_sdl_python.h video_sdl.py video_sdl_python.cc video_sdl_guile.cc video_sdl_guile.h: video_sdl.i
+# $(python_deps) $(guile_deps): video_sdl.i
+video_sdl_python.h video_sdl.py video_sdl_python.cc: video_sdl.i
## This rule will get called only when MAKE decides that one of the
## targets needs to be created or re-created, because:
##
@@ -178,7 +192,6 @@ video_sdl_python.h video_sdl.py video_sdl_python.cc video_sdl_guile.cc video_sdl
## Tell MAKE to run the rule for creating this stamp.
##
$(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/video_sdl-generate-python-stamp WHAT=$<; \
- $(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/video_sdl-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
@@ -206,6 +219,24 @@ video_sdl_python.h video_sdl.py video_sdl_python.cc video_sdl_guile.cc video_sdl
exit $$?; \
fi;
+# the comments for the target above apply to this target as well, but it seemed
+# silly to include them twice. The only main change is for guile.
+video_sdl_guile.h video_sdl.scm video_sdl_guile.cc: video_sdl.i
+if GUILE
+ trap 'rm -rf $(DEPDIR)/video_sdl-generate-*' 1 2 13 15; \
+ if mkdir $(DEPDIR)/video_sdl-generate-lock 2>/dev/null; then \
+ rm -f $(DEPDIR)/video_sdl-generate-*stamp; \
+ $(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/video_sdl-generate-guile-stamp WHAT=$<; \
+ rmdir $(DEPDIR)/video_sdl-generate-lock; \
+ else \
+ while test -d $(DEPDIR)/video_sdl-generate-lock; do \
+ sleep 1; \
+ done; \
+ test -f $(DEPDIR)/video_sdl-generate-guile-stamp; \
+ exit $$?; \
+ fi;
+endif # end of GUILE
+
$(DEPDIR)/video_sdl-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
@@ -272,8 +303,10 @@ $(DEPDIR)/video_sdl-generate-python-stamp:
@am__include@ @am__quote@./$(DEPDIR)/video_sdl_python.d@am__quote@
-$(DEPDIR)/video_sdl-generate-guile-stamp:
if GUILE
+$(DEPDIR)/video_sdl-generate-guile-stamp:
+# the comments for the target above apply to this target as well, but it seemed
+# silly to include them twice. The only main change is for guile.
if $(SWIG) $(STD_SWIG_GUILE_ARGS) $(video_sdl_swig_args) \
-MD -MF $(DEPDIR)/video_sdl_guile.Std \
-module video_sdl -o video_sdl_guile.cc $(WHAT); then \
@@ -295,7 +328,11 @@ if GUILE
awk '{ printf "%s:\n\n", $$0 }' >> $(DEPDIR)/video_sdl_guile.d
$(RM) $(DEPDIR)/video_sdl_guile.Std
touch $(DEPDIR)/video_sdl-generate-guile-stamp
+else
+ touch $(DEPDIR)/video_sdl-generate-guile-stamp
+endif
@am__include@ @am__quote@./$(DEPDIR)/video_sdl_guile.d@am__quote@
-endif
+
+#gnuradio_swig_py_runtime_python.h: gnuradio_swig_py_runtime.i