From 74de86964c914c0e789ac414d0bd9a920d8a62af Mon Sep 17 00:00:00 2001 From: Stefan Bratanov Date: Thu, 24 Nov 2022 20:36:18 +0000 Subject: [PATCH] change in makefiles --- bindings/java/Makefile | 9 ++++----- src/Makefile | 7 ++++++- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/bindings/java/Makefile b/bindings/java/Makefile index f11a6da..6529743 100644 --- a/bindings/java/Makefile +++ b/bindings/java/Makefile @@ -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 diff --git a/src/Makefile b/src/Makefile index e46d320..01b8824 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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