summaryrefslogtreecommitdiff
path: root/Examples/r/class/Makefile
blob: 6bed3ce53031b3a38caf879d37fa3dd6ca02b2f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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