Mercurial > pub > dyncall > bindings
comparison java/jdc/Makefile @ 20:77ca609422f1
- first working build of new java binding
author | cslag |
---|---|
date | Wed, 30 Mar 2016 02:40:56 +0200 |
parents | 3bfef07b0cd9 |
children | 40a2c4198016 |
comparison
equal
deleted
inserted
replaced
19:5b51738793c6 | 20:77ca609422f1 |
---|---|
1 all: | 1 # should be .jnilib on os x, .dll on windows, etc. @@@ |
2 cd org/dyncall/ && javac DC.java | 2 SO=libjdc.so |
3 | |
4 build: $(SO) | |
5 | |
6 clean: | |
7 rm org_dyncall_DC.h || true | |
8 rm org/dyncall/DC.class || true | |
9 rm $(SO) || true | |
10 | |
11 $(SO): org_dyncall_DC.h org_dyncall_DC.c | |
12 # @@@ support different compilers @@@ esp. on windows | |
13 $(CC) -shared -fPIC -o $@ org_dyncall_DC.c | |
14 | |
15 org_dyncall_DC.h: org/dyncall/DC.class | |
3 javah org.dyncall.DC | 16 javah org.dyncall.DC |
4 | 17 |
18 org/dyncall/DC.class: | |
19 cd org/dyncall/ && javac DC.java | |
20 | |
21 .PHONY: build clean |