Source

ojacare / camljava-0.3 / test_simple_call_from_java / Makefile

Full commit
all: Test.class libTestC.so
	LD_LIBRARY_PATH=. java Test

Test.class: Test.java
	javac Test.java

Test.h: Test.class
	javah -jni Test

JAVA=/usr/lib/jvm/java-6-openjdk-i386/

TestC.o: Test.h TestC.c
	gcc -c -I $(JAVA)/include TestC.c

libTestC.so: TestC.o
	gcc -shared TestC.o -o $@

clean:
	rm -f *.o *.so *.class Test.h