Simplified java binding example

This commit is contained in:
Joseph Henry
2017-10-16 13:10:20 -07:00
parent 1a4ad49e06
commit 5de02d3259
13 changed files with 111 additions and 55 deletions

View File

@@ -0,0 +1,18 @@
OSTYPE=$(shell uname -s | tr '[A-Z]' '[a-z]')
BUILD=build/$(OSTYPE)
ifeq ($(OSTYPE),darwin)
SHARED_LIB=libzt.dylib
endif
ifeq ($(OSTYPE),linux)
SHARED_LIB=libzt.so
endif
example_java_app:
javac *.java
copy_dynamic_lib:
cp ../../../$(BUILD)/$(SHARED_LIB) .
clean:
-find . -type f \( -name '*.class' \) -delete