change in makefiles
This commit is contained in:
parent
3424f7c738
commit
74de86964c
|
@ -10,15 +10,14 @@ else
|
|||
CLANG_EXECUTABLE=clang
|
||||
GRADLE_COMMAND=./gradlew
|
||||
UNAME_S := $(shell uname -s)
|
||||
ifeq ($(UNAME_S),Linux)
|
||||
CLANG_FLAGS=-fPIC -shared
|
||||
JNI_INCLUDE_FOLDER=linux
|
||||
LIBRARY_RESOURCE=libckzg4844jni.so
|
||||
endif
|
||||
ifeq ($(UNAME_S),Darwin)
|
||||
CLANG_FLAGS=-dynamiclib
|
||||
JNI_INCLUDE_FOLDER=darwin
|
||||
LIBRARY_RESOURCE=libckzg4844jni.dylib
|
||||
else
|
||||
CLANG_FLAGS=-fPIC -shared
|
||||
JNI_INCLUDE_FOLDER=linux
|
||||
LIBRARY_RESOURCE=libckzg4844jni.so
|
||||
endif
|
||||
endif
|
||||
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
INCLUDE_DIRS = ../inc
|
||||
CFLAGS += -O2 -fPIC
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
CFLAGS += -O2
|
||||
else
|
||||
CFLAGS += -O2 -fPIC
|
||||
endif
|
||||
|
||||
all: c_kzg_4844.o lib
|
||||
|
||||
|
|
Loading…
Reference in New Issue