|
|
|
@ -3,11 +3,6 @@ NATIVE_JAVA_CLASSES = org.rocksdb.RocksDB org.rocksdb.Options org.rocksdb.WriteB |
|
|
|
|
NATIVE_INCLUDE = ./include
|
|
|
|
|
ROCKSDB_JAR = rocksdbjni.jar
|
|
|
|
|
|
|
|
|
|
ROCKSDBJNILIB = ./librocksdbjni.so
|
|
|
|
|
ifeq ($(PLATFORM), OS_MACOSX) |
|
|
|
|
ROCKSDBJNILIB = ./librocksdbjni.jnilib
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
clean: |
|
|
|
|
-find . -name "*.class" -exec rm {} \;
|
|
|
|
|
-find . -name "hs*.log" -exec rm {} \;
|
|
|
|
@ -16,7 +11,7 @@ clean: |
|
|
|
|
java: |
|
|
|
|
javac org/rocksdb/util/*.java org/rocksdb/*.java
|
|
|
|
|
@cp ../HISTORY.md ./HISTORY-CPP.md
|
|
|
|
|
jar -cf $(ROCKSDB_JAR) org/rocksdb/*.class org/rocksdb/util/*.class HISTORY*.md $(ROCKSDBJNILIB)
|
|
|
|
|
jar -cf $(ROCKSDB_JAR) org/rocksdb/*.class org/rocksdb/util/*.class HISTORY*.md
|
|
|
|
|
@rm -f ./HISTORY-CPP.md
|
|
|
|
|
javah -d $(NATIVE_INCLUDE) -jni $(NATIVE_JAVA_CLASSES)
|
|
|
|
|
|
|
|
|
|