mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-09 07:23:56 +08:00
jni api
This commit is contained in:
24
jni/Makefile
Normal file
24
jni/Makefile
Normal file
@@ -0,0 +1,24 @@
|
||||
# maybe a config is required to cross platform
|
||||
|
||||
|
||||
all: libgmssl.jnilib
|
||||
|
||||
libgmssl.jnilib: GmSSL.h
|
||||
gcc -shared -fPIC -Wall -I./jni/ GmSSL.c ../libcrypto.a -o libgmssl.jnilib
|
||||
|
||||
GmSSL.h: GmSSL.class
|
||||
javah -jni GmSSL
|
||||
|
||||
GmSSL.class:
|
||||
javac GmSSL.java
|
||||
|
||||
clean:
|
||||
rm -f GmSSL.h
|
||||
rm -f *.class
|
||||
rm -f *.jnilib
|
||||
rm -f *.o
|
||||
rm -f a.out
|
||||
|
||||
test:
|
||||
java -Djava.library.path=. GmSSL
|
||||
|
||||
Reference in New Issue
Block a user