summaryrefslogtreecommitdiff
path: root/gr-comedi
diff options
context:
space:
mode:
authorRob Savoye <rob@welcomehome.org>2010-10-14 12:34:08 -0600
committerEric Blossom <eb@comsec.com>2010-11-10 12:10:44 -0800
commited4094208c501e91838ccc333059e4731e8ae908 (patch)
tree146475957ba48a9b7e0deae5ddacf68f4571a66b /gr-comedi
parent29fef37cdee9eced2ff7c6ff44da2e8e8fa88aa7 (diff)
regenerated after changes to the template
Diffstat (limited to 'gr-comedi')
-rw-r--r--gr-comedi/src/Makefile.swig.gen59
1 files changed, 45 insertions, 14 deletions
diff --git a/gr-comedi/src/Makefile.swig.gen b/gr-comedi/src/Makefile.swig.gen
index dd2c235c33..66edf9ce9d 100644
--- a/gr-comedi/src/Makefile.swig.gen
+++ b/gr-comedi/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 += comedi.py comedi.cc
+swig_built_sources += comedi.py comedi_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 @@ comedi_swiginclude_HEADERS = \
$(comedi_swiginclude_headers)
comedi_pylib_LTLIBRARIES = \
- _comedi.la
+ _comedi_python.la
-_comedi_la_SOURCES = \
- comedi.cc \
+_comedi_python_la_SOURCES = \
+ comedi_python.cc \
$(comedi_la_swig_sources)
-_comedi_la_LIBADD = \
+_comedi_python_la_LIBADD = \
$(STD_SWIG_LA_LIB_ADD) \
$(comedi_la_swig_libadd)
-_comedi_la_LDFLAGS = \
+_comedi_python_la_LDFLAGS = \
$(STD_SWIG_LA_LD_FLAGS) \
$(comedi_la_swig_ldflags)
-_comedi_la_CXXFLAGS = \
+_comedi_python_la_CXXFLAGS = \
$(STD_SWIG_CXX_FLAGS) \
$(comedi_la_swig_cxxflags)
@@ -105,9 +105,23 @@ comedi_python_PYTHON = \
comedi.py \
$(comedi_python)
+if GUILE
+comedi_pylib_LTLIBRARIES += _comedi_guile.la
+
+_comedi_guile_la_SOURCES = \
+ comedi_guile.cc \
+ $(comedi_la_swig_sources)
+
+# Guile can use the same flags as python does
+_comedi_guile_la_LIBADD = $(_comedi_python_la_LIBADD)
+_comedi_guile_la_LDFLAGS = $(_comedi_python_la_LDFLAGS)
+_comedi_guile_la_CXXFLAGS = $(_comedi_python_la_CXXFLAGS)
+
+endif # end of GUILE
+
## Entry rule for running SWIG
-comedi.h comedi.py comedi.cc: comedi.i
+comedi.h comedi.py comedi_python.cc: comedi.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 @@ comedi.h comedi.py comedi.cc: comedi.i
##
## Remove the stamp associated with this filename.
##
- rm -f $(DEPDIR)/comedi-generate-stamp; \
+ rm -f $(DEPDIR)/comedi-generate-*stamp; \
##
## Tell MAKE to run the rule for creating this stamp.
##
- $(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/comedi-generate-stamp WHAT=$<; \
+ $(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/comedi-generate-python-stamp WHAT=$<; \
+ $(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/comedi-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 @@ comedi.h comedi.py comedi.cc: comedi.i
## Succeed if and only if the first process succeeded; exit this
## process returning the status of the generated stamp.
##
- test -f $(DEPDIR)/comedi-generate-stamp; \
+ test -f $(DEPDIR)/comedi-generate-python-stamp; \
exit $$?; \
fi;
-$(DEPDIR)/comedi-generate-stamp:
+$(DEPDIR)/comedi-generate-guile-stamp:
+ if $(SWIG) $(STD_SWIG_GUILE_ARGS) $(comedi_swig_args) \
+ -MD -MF $(DEPDIR)/comedi.Std \
+ -module comedi -o comedi_guile.cc $(WHAT); then \
+ if test $(host_os) = mingw32; then \
+ $(RM) $(DEPDIR)/comedi.Sd; \
+ $(SED) 's,\\\\,/,g' < $(DEPDIR)/comedi.Std \
+ > $(DEPDIR)/comedi.Sd; \
+ $(RM) $(DEPDIR)/comedi.Std; \
+ $(MV) $(DEPDIR)/comedi.Sd $(DEPDIR)/comedi.Std; \
+ fi; \
+ else \
+ $(RM) $(DEPDIR)/comedi.S*; exit 1; \
+ fi;
+ touch $(DEPDIR)/comedi-generate-guile-stamp
+
+$(DEPDIR)/comedi-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)/comedi-generate-stamp:
##
if $(SWIG) $(STD_SWIG_PYTHON_ARGS) $(comedi_swig_args) \
-MD -MF $(DEPDIR)/comedi.Std \
- -module comedi -o comedi.cc $(WHAT); then \
+ -module comedi -o comedi_python.cc $(WHAT); then \
if test $(host_os) = mingw32; then \
$(RM) $(DEPDIR)/comedi.Sd; \
$(SED) 's,\\\\,/,g' < $(DEPDIR)/comedi.Std \
@@ -249,7 +280,7 @@ $(DEPDIR)/comedi-generate-stamp:
## executing this rule; allows other threads waiting on this process
## to continue.
##
- touch $(DEPDIR)/comedi-generate-stamp
+ touch $(DEPDIR)/comedi-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,