change in makefiles

This commit is contained in:
Stefan Bratanov 2022-11-24 20:36:18 +00:00
parent 3424f7c738
commit 74de86964c
2 changed files with 10 additions and 6 deletions

View File

@ -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

View File

@ -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