readme improvements

This commit is contained in:
Stefan Bratanov 2022-11-24 12:32:03 +00:00
parent 679cdd20ce
commit a7557be070
4 changed files with 9 additions and 7 deletions

View File

@ -1,4 +1,2 @@
lib/
*.class
*.o
*.a
*.o

View File

@ -2,8 +2,8 @@
## Prerequisites
* Follow the instructions in the home README.md to create the libblst.a.
* JAVA_HOME environment variable is set to a jdk with an `include` folder containing jni.h file.
* Follow the instructions in the [README.md](../../README.md) to install blst and C-KZG.
* JAVA_HOME environment variable is set to a JDK with an `include` folder containing a jni.h file.
## Windows
@ -14,7 +14,7 @@ TBC
## Linux
```bash
clang -O -Wall -shared -fPIC -I../../blst/bindings -I../../src/ -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux -o lib/libckzg4844jni.so c_kzg_4844_jni.c ../../src/c_kzg_4844.c ../../blst/libblst.a
clang -O -Wall -shared -fPIC -I../../blst/bindings -I../../src/ -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux -o lib/libckzg4844jni.so c_kzg_4844_jni.c c_kzg_4844.o ../../lib/libblst.a
```
## Mac-OS

3
bindings/java/lib/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*.dll
*.so
*.dylib

View File

@ -15,6 +15,7 @@ blst:
cp libblst.a ../lib && \
cp bindings/*.h ../inc
# Copy make sure c_kzg_4844.o is built and copy it for the NodeJS bindings
# Make sure c_kzg_4844.o is built and copy it for the NodeJS and Java bindings
lib: c_kzg_4844.o Makefile
cp *.o ../bindings/node.js
cp *.o ../bindings/java