view java/jdc/Makefile @ 34:2682a627168c

- breaking changes: * restrict 'Z' conversions to immutable types * restrict 'p' to mutable types (and handles)
author Tassilo Philipp
date Sun, 12 Apr 2020 19:37:37 +0200
parents 4ee8d6aa7721
children
line wrap: on
line source

# should be .jnilib on os x, .dll on windows, etc. @@@
SO=libjdc.so

build: $(SO)

clean:
	rm org_dyncall_DC.h || true
	rm org/dyncall/DC.class || true
	rm $(SO) || true

$(SO): org_dyncall_DC.h org_dyncall_DC.c
	# @@@ support different compilers @@@ esp. on windows
	$(CC) -shared -fPIC -o $@ org_dyncall_DC.c -ldyncall_s -ldynload_s

org_dyncall_DC.h: org/dyncall/DC.class
	javah -jni org.dyncall.DC

org/dyncall/DC.class: org/dyncall/DC.java
	cd org/dyncall/ && javac DC.java

.PHONY: build clean