annotate java/jdc/Makefile @ 22:4ee8d6aa7721

- java binding cleanup, exposed free functions (not very oo, this entire binding) - java binding examples
author cslag
date Sat, 09 Apr 2016 18:18:34 -0500
parents 40a2c4198016
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20
77ca609422f1 - first working build of new java binding
cslag
parents: 18
diff changeset
1 # should be .jnilib on os x, .dll on windows, etc. @@@
77ca609422f1 - first working build of new java binding
cslag
parents: 18
diff changeset
2 SO=libjdc.so
77ca609422f1 - first working build of new java binding
cslag
parents: 18
diff changeset
3
77ca609422f1 - first working build of new java binding
cslag
parents: 18
diff changeset
4 build: $(SO)
77ca609422f1 - first working build of new java binding
cslag
parents: 18
diff changeset
5
77ca609422f1 - first working build of new java binding
cslag
parents: 18
diff changeset
6 clean:
77ca609422f1 - first working build of new java binding
cslag
parents: 18
diff changeset
7 rm org_dyncall_DC.h || true
77ca609422f1 - first working build of new java binding
cslag
parents: 18
diff changeset
8 rm org/dyncall/DC.class || true
77ca609422f1 - first working build of new java binding
cslag
parents: 18
diff changeset
9 rm $(SO) || true
77ca609422f1 - first working build of new java binding
cslag
parents: 18
diff changeset
10
77ca609422f1 - first working build of new java binding
cslag
parents: 18
diff changeset
11 $(SO): org_dyncall_DC.h org_dyncall_DC.c
77ca609422f1 - first working build of new java binding
cslag
parents: 18
diff changeset
12 # @@@ support different compilers @@@ esp. on windows
21
40a2c4198016 - working jdc (but with memleaks, currently)
cslag
parents: 20
diff changeset
13 $(CC) -shared -fPIC -o $@ org_dyncall_DC.c -ldyncall_s -ldynload_s
20
77ca609422f1 - first working build of new java binding
cslag
parents: 18
diff changeset
14
77ca609422f1 - first working build of new java binding
cslag
parents: 18
diff changeset
15 org_dyncall_DC.h: org/dyncall/DC.class
21
40a2c4198016 - working jdc (but with memleaks, currently)
cslag
parents: 20
diff changeset
16 javah -jni org.dyncall.DC
18
3bfef07b0cd9 - cleanup of non-working java binding, restart work, somewhat different interface
cslag
parents:
diff changeset
17
22
4ee8d6aa7721 - java binding cleanup, exposed free functions (not very oo, this entire binding)
cslag
parents: 21
diff changeset
18 org/dyncall/DC.class: org/dyncall/DC.java
20
77ca609422f1 - first working build of new java binding
cslag
parents: 18
diff changeset
19 cd org/dyncall/ && javac DC.java
77ca609422f1 - first working build of new java binding
cslag
parents: 18
diff changeset
20
77ca609422f1 - first working build of new java binding
cslag
parents: 18
diff changeset
21 .PHONY: build clean