fork of https://github.com/oxigraph/rocksdb and https://github.com/facebook/rocksdb for nextgraph and oxigraph
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
474 B
18 lines
474 B
11 years ago
|
NATIVE_JAVA_CLASSES = org.rocksdb.RocksDB
|
||
|
NATIVE_INCLUDE = ./include
|
||
|
ROCKSDB_JAR = rocksdbjni.jar
|
||
|
|
||
|
clean:
|
||
|
-find . -name "*.class" -exec rm {} \;
|
||
|
-find . -name "hs*.log" -exec rm {} \;
|
||
|
rm -f $(ROCKSDB_JAR)
|
||
|
|
||
|
java:
|
||
|
javac org/rocksdb/*.java
|
||
|
jar -cf $(ROCKSDB_JAR) org/rocksdb/*.class
|
||
|
javah -d $(NATIVE_INCLUDE) -jni $(NATIVE_JAVA_CLASSES)
|
||
|
|
||
|
sample:
|
||
|
javac -cp $(ROCKSDB_JAR) RocksDBSample.java
|
||
|
java -ea -Djava.library.path=.:../ -cp ".:./*" RocksDBSample /tmp/rocksdbjni/
|