diff options
Diffstat (limited to 'gr-trellis/src/lib/Makefile.swig.gen')
-rw-r--r-- | gr-trellis/src/lib/Makefile.swig.gen | 51 |
1 files changed, 44 insertions, 7 deletions
diff --git a/gr-trellis/src/lib/Makefile.swig.gen b/gr-trellis/src/lib/Makefile.swig.gen index 00d51a17a..49734f88e 100644 --- a/gr-trellis/src/lib/Makefile.swig.gen +++ b/gr-trellis/src/lib/Makefile.swig.gen @@ -38,6 +38,16 @@ trellis_pylibdir_category ?= $(trellis_pythondir_category) trellis_pythondir = $(pythondir)/$(trellis_pythondir_category) trellis_pylibdir = $(pyexecdir)/$(trellis_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. +trellis_scmlibdir = @GUILE_PKLIBDIR@/gnuradio + +# The scm files for the guile modules get installed where ever guile +# is installed, usually /usr/share/guile/site/trellis +# FIXME: determince whether these should be installed with gnuradio. +trellis_scmdir = @GUILE_PKDATADIR@/gnuradio + ## SWIG headers are always installed into the same directory. trellis_swigincludedir = $(swigincludedir) @@ -73,6 +83,9 @@ MOSTLYCLEANFILES += $(DEPDIR)/*.S* ## be added manually by the including Makefile.am . swig_built_sources += trellis.py trellis_python.cc +if GUILE +swig_built_sources += trellis.scm trellis_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 @@ trellis_python_PYTHON = \ $(trellis_python) if GUILE -trellis_pylib_LTLIBRARIES += _trellis_guile.la - +trellis_scmlib_LTLIBRARIES = _trellis_guile.la _trellis_guile_la_SOURCES = \ - trellis_guile.cc \ + trellis_guile.cc \ $(trellis_la_swig_sources) +trellis_scm_DATA = trellis.scm # Guile can use the same flags as python does _trellis_guile_la_LIBADD = $(_trellis_python_la_LIBADD) @@ -121,7 +134,8 @@ endif # end of GUILE ## Entry rule for running SWIG -trellis_python.h trellis.py trellis_python.cc trellis_guile.cc trellis_guile.h: trellis.i +# $(python_deps) $(guile_deps): trellis.i +trellis_python.h trellis.py trellis_python.cc: trellis.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 @@ trellis_python.h trellis.py trellis_python.cc trellis_guile.cc trellis_guile.h: ## Tell MAKE to run the rule for creating this stamp. ## $(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/trellis-generate-python-stamp WHAT=$<; \ - $(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/trellis-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 @@ trellis_python.h trellis.py trellis_python.cc trellis_guile.cc trellis_guile.h: 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. +trellis_guile.h trellis.scm trellis_guile.cc: trellis.i +if GUILE + trap 'rm -rf $(DEPDIR)/trellis-generate-*' 1 2 13 15; \ + if mkdir $(DEPDIR)/trellis-generate-lock 2>/dev/null; then \ + rm -f $(DEPDIR)/trellis-generate-*stamp; \ + $(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/trellis-generate-guile-stamp WHAT=$<; \ + rmdir $(DEPDIR)/trellis-generate-lock; \ + else \ + while test -d $(DEPDIR)/trellis-generate-lock; do \ + sleep 1; \ + done; \ + test -f $(DEPDIR)/trellis-generate-guile-stamp; \ + exit $$?; \ + fi; +endif # end of GUILE + $(DEPDIR)/trellis-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)/trellis-generate-python-stamp: @am__include@ @am__quote@./$(DEPDIR)/trellis_python.d@am__quote@ -$(DEPDIR)/trellis-generate-guile-stamp: if GUILE +$(DEPDIR)/trellis-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) $(trellis_swig_args) \ -MD -MF $(DEPDIR)/trellis_guile.Std \ -module trellis -o trellis_guile.cc $(WHAT); then \ @@ -295,7 +328,11 @@ if GUILE awk '{ printf "%s:\n\n", $$0 }' >> $(DEPDIR)/trellis_guile.d $(RM) $(DEPDIR)/trellis_guile.Std touch $(DEPDIR)/trellis-generate-guile-stamp +else + touch $(DEPDIR)/trellis-generate-guile-stamp +endif @am__include@ @am__quote@./$(DEPDIR)/trellis_guile.d@am__quote@ -endif + +#gnuradio_swig_py_runtime_python.h: gnuradio_swig_py_runtime.i |