1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
include ../Makefile.config
CAMLJAVA_PATH=../lib/camljava.jar
CAMLJAVA_DIR=../lib
#CAMLJAVA_PATH=`ocamlc -where`/camljava/camljava.jar
#CAMLJAVA_DIR=+camljava
all: jnitest Test.class Testcb.class
CLASSPATH=$(CAMLJAVA_PATH):. ./jnitest
jnitest: jnitest.ml
ocamlc -ccopt -g -o jnitest -I $(CAMLJAVA_DIR) jni.cma jnitest.ml
clean::
rm -f jnitest
.SUFFIXES: .java .class
.java.class:
$(JAVAC) -classpath $(CAMLJAVA_PATH):. $*.java
clean::
rm -f *.cm?
rm -f *.class
|