summaryrefslogtreecommitdiff
path: root/Examples/ruby/template/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/ruby/template/Makefile')
-rw-r--r--Examples/ruby/template/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Examples/ruby/template/Makefile b/Examples/ruby/template/Makefile
new file mode 100644
index 000000000..6b0d049a5
--- /dev/null
+++ b/Examples/ruby/template/Makefile
@@ -0,0 +1,20 @@
+TOP = ../..
+SWIG = $(TOP)/../swig
+CXXSRCS =
+TARGET = example
+INTERFACE = example.i
+LIBS = -lm
+SWIGOPT =
+
+all::
+ $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
+ SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' ruby_cpp
+
+static::
+ $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
+ SWIGOPT='$(SWIGOPT)' TARGET='myruby' INTERFACE='$(INTERFACE)' ruby_cpp_static
+
+clean::
+ $(MAKE) -f $(TOP)/Makefile ruby_clean
+
+check: all