diff options
Diffstat (limited to 'gr-pager')
-rw-r--r-- | gr-pager/swig/Makefile.swig.gen | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/gr-pager/swig/Makefile.swig.gen b/gr-pager/swig/Makefile.swig.gen index 8870c674b..48567ad4f 100644 --- a/gr-pager/swig/Makefile.swig.gen +++ b/gr-pager/swig/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 += pager_swig.py pager_swig-python.cc +swig_built_sources += pager_swig.py pager_swig_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 @@ pager_swig_swiginclude_HEADERS = \ $(pager_swig_swiginclude_headers) pager_swig_pylib_LTLIBRARIES = \ - _pager_swig.la + _pager_swig_python.la -_pager_swig_la_SOURCES = \ - pager_swig-python.cc \ +_pager_swig_python_la_SOURCES = \ + pager_swig_python.cc \ $(pager_swig_la_swig_sources) -_pager_swig_la_LIBADD = \ +_pager_swig_python_la_LIBADD = \ $(STD_SWIG_LA_LIB_ADD) \ $(pager_swig_la_swig_libadd) -_pager_swig_la_LDFLAGS = \ +_pager_swig_python_la_LDFLAGS = \ $(STD_SWIG_LA_LD_FLAGS) \ $(pager_swig_la_swig_ldflags) -_pager_swig_la_CXXFLAGS = \ +_pager_swig_python_la_CXXFLAGS = \ $(STD_SWIG_CXX_FLAGS) \ $(pager_swig_la_swig_cxxflags) @@ -105,9 +105,23 @@ pager_swig_python_PYTHON = \ pager_swig.py \ $(pager_swig_python) +if GUILE +pager_swig_pylib_LTLIBRARIES += _pager_swig_guile.la + +_pager_swig_guile_la_SOURCES = \ + pager_swig_guile.cc \ + $(pager_swig_la_swig_sources) + +# Guile can use the same flags as python does +_pager_swig_guile_la_LIBADD = $(_pager_swig_python_la_LIBADD) +_pager_swig_guile_la_LDFLAGS = $(_pager_swig_python_la_LDFLAGS) +_pager_swig_guile_la_CXXFLAGS = $(_pager_swig_python_la_CXXFLAGS) + +endif # end of GUILE + ## Entry rule for running SWIG -pager_swig.h pager_swig.py pager_swig-python.cc: pager_swig.i +pager_swig.h pager_swig.py pager_swig_python.cc: pager_swig.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 @@ pager_swig.h pager_swig.py pager_swig-python.cc: pager_swig.i fi; $(DEPDIR)/pager_swig-generate-guile-stamp: +if GUILE if $(SWIG) $(STD_SWIG_GUILE_ARGS) $(pager_swig_swig_args) \ -MD -MF $(DEPDIR)/pager_swig.Std \ - -module pager_swig -o pager_swig-guile.cc $(WHAT); then \ + -module pager_swig -o pager_swig_guile.cc $(WHAT); then \ if test $(host_os) = mingw32; then \ $(RM) $(DEPDIR)/pager_swig.Sd; \ $(SED) 's,\\\\,/,g' < $(DEPDIR)/pager_swig.Std \ @@ -207,6 +222,7 @@ $(DEPDIR)/pager_swig-generate-guile-stamp: $(RM) $(DEPDIR)/pager_swig.S*; exit 1; \ fi; touch $(DEPDIR)/pager_swig-generate-guile-stamp +endif $(DEPDIR)/pager_swig-generate-python-stamp: ## This rule will be called only by the first process issuing the @@ -219,7 +235,7 @@ $(DEPDIR)/pager_swig-generate-python-stamp: ## if $(SWIG) $(STD_SWIG_PYTHON_ARGS) $(pager_swig_swig_args) \ -MD -MF $(DEPDIR)/pager_swig.Std \ - -module pager_swig -o pager_swig-python.cc $(WHAT); then \ + -module pager_swig -o pager_swig_python.cc $(WHAT); then \ if test $(host_os) = mingw32; then \ $(RM) $(DEPDIR)/pager_swig.Sd; \ $(SED) 's,\\\\,/,g' < $(DEPDIR)/pager_swig.Std \ |