| 1 | ## there are two ways to compile JRIEngine - either use |
| 2 | ## already installed REngine and JRI and then just |
| 3 | ## compile JRIEngine against those jars or use this |
| 4 | ## Makefile with all org sources checked out |
| 5 | ## in which case the JRIEngine.jar will implicitly |
| 6 | ## contain org.rosuda.JRI classes as well |
| 7 | ## However, that requires both: |
| 8 | ## org/rosuda/JRI |
| 9 | ## org/rosuda/REngine |
| 10 | |
| 11 | JRI_MAIN_SRC=$(wildcard ../../*.java) |
| 12 | JRIENGINE_SRC=JRIEngine.java |
| 13 | |
| 14 | JAVAC=javac |
| 15 | JAR=jar |
| 16 | JFLAGS=-source 1.6 -target 1.6 |
| 17 | |
| 18 | all: JRIEngine.jar |
| 19 | |
| 20 | JRIEngine.jar: $(JRI_MAIN_SRC) $(JRIENGINE_SRC) |
| 21 | rm -rf org |
| 22 | $(JAVAC) $(JFLAGS) -classpath ../REngine.jar -d . $^ |
| 23 | $(JAR) fc $@ org |
| 24 | |
| 25 | clean: |
| 26 | rm -rf org *~ JRIEngine.jar *.class |
| 27 | make -C test clean |