diff options
author | Rob Savoye | 2010-10-18 21:45:11 -0600 |
---|---|---|
committer | Eric Blossom | 2010-11-10 12:10:45 -0800 |
commit | 25bf9bbd0c5b702acf26e05d5a9966fd323f6614 (patch) | |
tree | 2bd20d415c4f6ad212ee60938382a4661250d856 /gr-msdd6000 | |
parent | 3d55841ec05f1a09eb2de304f9ad30b9ed068986 (diff) | |
download | gnuradio-25bf9bbd0c5b702acf26e05d5a9966fd323f6614.tar.gz gnuradio-25bf9bbd0c5b702acf26e05d5a9966fd323f6614.tar.bz2 gnuradio-25bf9bbd0c5b702acf26e05d5a9966fd323f6614.zip |
don't ifdef the target away. regenerate .gen files.
Diffstat (limited to 'gr-msdd6000')
-rw-r--r-- | gr-msdd6000/src/Makefile.swig.gen | 102 |
1 files changed, 88 insertions, 14 deletions
diff --git a/gr-msdd6000/src/Makefile.swig.gen b/gr-msdd6000/src/Makefile.swig.gen index 460c81e88..50ba1ab38 100644 --- a/gr-msdd6000/src/Makefile.swig.gen +++ b/gr-msdd6000/src/Makefile.swig.gen @@ -38,6 +38,16 @@ msdd_pylibdir_category ?= $(msdd_pythondir_category) msdd_pythondir = $(pythondir)/$(msdd_pythondir_category) msdd_pylibdir = $(pyexecdir)/$(msdd_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. +msdd_scmlibdir = @GUILE_PKLIBDIR@/gnuradio + +# The scm files for the guile modules get installed where ever guile +# is installed, usually /usr/share/guile/site/msdd +# FIXME: determince whether these should be installed with gnuradio. +msdd_scmdir = @GUILE_PKDATADIR@/gnuradio + ## SWIG headers are always installed into the same directory. msdd_swigincludedir = $(swigincludedir) @@ -73,6 +83,9 @@ MOSTLYCLEANFILES += $(DEPDIR)/*.S* ## be added manually by the including Makefile.am . swig_built_sources += msdd.py msdd_python.cc +if GUILE +swig_built_sources += msdd.scm msdd_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 @@ msdd_python_PYTHON = \ $(msdd_python) if GUILE -msdd_pylib_LTLIBRARIES += _msdd_guile.la - +msdd_scmlib_LTLIBRARIES = _msdd_guile.la _msdd_guile_la_SOURCES = \ - msdd_guile.cc \ + msdd_guile.cc \ $(msdd_la_swig_sources) +msdd_scm_DATA = msdd.scm # Guile can use the same flags as python does _msdd_guile_la_LIBADD = $(_msdd_python_la_LIBADD) @@ -121,7 +134,8 @@ endif # end of GUILE ## Entry rule for running SWIG -msdd_python.h msdd.py msdd_python.cc msdd_guile.cc msdd_guile.h: msdd.i +# $(python_deps) $(guile_deps): msdd.i +msdd_python.h msdd.py msdd_python.cc: msdd.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 @@ msdd_python.h msdd.py msdd_python.cc msdd_guile.cc msdd_guile.h: msdd.i ## Tell MAKE to run the rule for creating this stamp. ## $(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/msdd-generate-python-stamp WHAT=$<; \ - $(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/msdd-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 @@ msdd_python.h msdd.py msdd_python.cc msdd_guile.cc msdd_guile.h: msdd.i 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. +msdd_guile.h msdd.scm msdd_guile.cc: msdd.i +if GUILE + trap 'rm -rf $(DEPDIR)/msdd-generate-*' 1 2 13 15; \ + if mkdir $(DEPDIR)/msdd-generate-lock 2>/dev/null; then \ + rm -f $(DEPDIR)/msdd-generate-*stamp; \ + $(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/msdd-generate-guile-stamp WHAT=$<; \ + rmdir $(DEPDIR)/msdd-generate-lock; \ + else \ + while test -d $(DEPDIR)/msdd-generate-lock; do \ + sleep 1; \ + done; \ + test -f $(DEPDIR)/msdd-generate-guile-stamp; \ + exit $$?; \ + fi; +endif # end of GUILE + $(DEPDIR)/msdd-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)/msdd-generate-python-stamp: @am__include@ @am__quote@./$(DEPDIR)/msdd_python.d@am__quote@ -$(DEPDIR)/msdd-generate-guile-stamp: if GUILE +$(DEPDIR)/msdd-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) $(msdd_swig_args) \ -MD -MF $(DEPDIR)/msdd_guile.Std \ -module msdd -o msdd_guile.cc $(WHAT); then \ @@ -295,9 +328,13 @@ if GUILE awk '{ printf "%s:\n\n", $$0 }' >> $(DEPDIR)/msdd_guile.d $(RM) $(DEPDIR)/msdd_guile.Std touch $(DEPDIR)/msdd-generate-guile-stamp +else + touch $(DEPDIR)/msdd-generate-guile-stamp +endif @am__include@ @am__quote@./$(DEPDIR)/msdd_guile.d@am__quote@ -endif + +#gnuradio_swig_py_runtime_python.h: gnuradio_swig_py_runtime.i # -*- Makefile -*- # @@ -339,6 +376,16 @@ msdd_rs_pylibdir_category ?= $(msdd_rs_pythondir_category) msdd_rs_pythondir = $(pythondir)/$(msdd_rs_pythondir_category) msdd_rs_pylibdir = $(pyexecdir)/$(msdd_rs_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. +msdd_rs_scmlibdir = @GUILE_PKLIBDIR@/gnuradio + +# The scm files for the guile modules get installed where ever guile +# is installed, usually /usr/share/guile/site/msdd_rs +# FIXME: determince whether these should be installed with gnuradio. +msdd_rs_scmdir = @GUILE_PKDATADIR@/gnuradio + ## SWIG headers are always installed into the same directory. msdd_rs_swigincludedir = $(swigincludedir) @@ -374,6 +421,9 @@ MOSTLYCLEANFILES += $(DEPDIR)/*.S* ## be added manually by the including Makefile.am . swig_built_sources += msdd_rs.py msdd_rs_python.cc +if GUILE +swig_built_sources += msdd_rs.scm msdd_rs_guile.cc +endif ## Various SWIG variables. These can be overloaded in the including ## Makefile.am by setting the variable value there, then including @@ -407,11 +457,11 @@ msdd_rs_python_PYTHON = \ $(msdd_rs_python) if GUILE -msdd_rs_pylib_LTLIBRARIES += _msdd_rs_guile.la - +msdd_rs_scmlib_LTLIBRARIES = _msdd_rs_guile.la _msdd_rs_guile_la_SOURCES = \ - msdd_rs_guile.cc \ + msdd_rs_guile.cc \ $(msdd_rs_la_swig_sources) +msdd_rs_scm_DATA = msdd_rs.scm # Guile can use the same flags as python does _msdd_rs_guile_la_LIBADD = $(_msdd_rs_python_la_LIBADD) @@ -422,7 +472,8 @@ endif # end of GUILE ## Entry rule for running SWIG -msdd_rs_python.h msdd_rs.py msdd_rs_python.cc msdd_rs_guile.cc msdd_rs_guile.h: msdd_rs.i +# $(python_deps) $(guile_deps): msdd_rs.i +msdd_rs_python.h msdd_rs.py msdd_rs_python.cc: msdd_rs.i ## This rule will get called only when MAKE decides that one of the ## targets needs to be created or re-created, because: ## @@ -479,7 +530,6 @@ msdd_rs_python.h msdd_rs.py msdd_rs_python.cc msdd_rs_guile.cc msdd_rs_guile.h: ## Tell MAKE to run the rule for creating this stamp. ## $(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/msdd_rs-generate-python-stamp WHAT=$<; \ - $(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/msdd_rs-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 @@ -507,6 +557,24 @@ msdd_rs_python.h msdd_rs.py msdd_rs_python.cc msdd_rs_guile.cc msdd_rs_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. +msdd_rs_guile.h msdd_rs.scm msdd_rs_guile.cc: msdd_rs.i +if GUILE + trap 'rm -rf $(DEPDIR)/msdd_rs-generate-*' 1 2 13 15; \ + if mkdir $(DEPDIR)/msdd_rs-generate-lock 2>/dev/null; then \ + rm -f $(DEPDIR)/msdd_rs-generate-*stamp; \ + $(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/msdd_rs-generate-guile-stamp WHAT=$<; \ + rmdir $(DEPDIR)/msdd_rs-generate-lock; \ + else \ + while test -d $(DEPDIR)/msdd_rs-generate-lock; do \ + sleep 1; \ + done; \ + test -f $(DEPDIR)/msdd_rs-generate-guile-stamp; \ + exit $$?; \ + fi; +endif # end of GUILE + $(DEPDIR)/msdd_rs-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 @@ -573,8 +641,10 @@ $(DEPDIR)/msdd_rs-generate-python-stamp: @am__include@ @am__quote@./$(DEPDIR)/msdd_rs_python.d@am__quote@ -$(DEPDIR)/msdd_rs-generate-guile-stamp: if GUILE +$(DEPDIR)/msdd_rs-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) $(msdd_rs_swig_args) \ -MD -MF $(DEPDIR)/msdd_rs_guile.Std \ -module msdd_rs -o msdd_rs_guile.cc $(WHAT); then \ @@ -596,7 +666,11 @@ if GUILE awk '{ printf "%s:\n\n", $$0 }' >> $(DEPDIR)/msdd_rs_guile.d $(RM) $(DEPDIR)/msdd_rs_guile.Std touch $(DEPDIR)/msdd_rs-generate-guile-stamp +else + touch $(DEPDIR)/msdd_rs-generate-guile-stamp +endif @am__include@ @am__quote@./$(DEPDIR)/msdd_rs_guile.d@am__quote@ -endif + +#gnuradio_swig_py_runtime_python.h: gnuradio_swig_py_runtime.i |