File: Makefile

package info (click to toggle)
camljava 0.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 344 kB
  • sloc: ansic: 844; ml: 336; java: 302; makefile: 97
file content (25 lines) | stat: -rw-r--r-- 474 bytes parent folder | download
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