summaryrefslogtreecommitdiff
path: root/Examples/r/class/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/r/class/Makefile')
-rw-r--r--Examples/r/class/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Examples/r/class/Makefile b/Examples/r/class/Makefile
new file mode 100644
index 0000000..6bed3ce
--- /dev/null
+++ b/Examples/r/class/Makefile
@@ -0,0 +1,18 @@
+TOP = ../..
+SWIG = $(TOP)/../preinst-swig
+CXXSRCS = example.cxx
+TARGET = example
+INTERFACE = example.i
+LIBS = -lm
+ARGS = SRCS='$(SRCS)' SWIG='$(SWIG)' \
+ TARGET='$(TARGET)' INTERFACE='$(INTERFACE)'
+
+all::
+ $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
+ TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' r_cpp
+
+clean::
+ $(MAKE) -f $(TOP)/Makefile $(ARGS) r_clean
+
+check: all
+ R CMD BATCH runme.R