mirror of
https://github.com/logos-messaging/negentropy.git
synced 2026-01-03 22:43:07 +00:00
using static library only in linux
This commit is contained in:
parent
3c2df0b899
commit
36cf1d4b56
12
cpp/Makefile
12
cpp/Makefile
@ -4,10 +4,10 @@
|
|||||||
NEGENTROPY_ROOT := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
NEGENTROPY_ROOT := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
||||||
INCS = -I$(NEGENTROPY_ROOT) -I/opt/homebrew/include/ -I$(NEGENTROPY_ROOT)/vendor/lmdbxx/include/
|
INCS = -I$(NEGENTROPY_ROOT) -I/opt/homebrew/include/ -I$(NEGENTROPY_ROOT)/vendor/lmdbxx/include/
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(detected_OS),Linux)
|
||||||
TARGET = libnegentropy.dll
|
|
||||||
else
|
|
||||||
TARGET = libnegentropy.a
|
TARGET = libnegentropy.a
|
||||||
|
else
|
||||||
|
TARGET = libnegentropy.dll
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: all clean install-deps precompiled-header build-lib
|
.PHONY: all clean install-deps precompiled-header build-lib
|
||||||
@ -23,11 +23,11 @@ precompiled-header:
|
|||||||
g++ -O0 --std=c++20 -Wall -fexceptions -g $(NEGENTROPY_ROOT)negentropy.h $(INCS)
|
g++ -O0 --std=c++20 -Wall -fexceptions -g $(NEGENTROPY_ROOT)negentropy.h $(INCS)
|
||||||
|
|
||||||
build-lib:
|
build-lib:
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(detected_OS),Linux)
|
||||||
g++ -O0 -g -std=c++20 $(INCS) -shared -fPIC -o $(TARGET) $(NEGENTROPY_ROOT)negentropy_wrapper.cpp -lcrypto -lssl -L/opt/homebrew/lib/
|
|
||||||
else
|
|
||||||
g++ -O0 -g -std=c++20 $(INCS) -fPIC -c negentropy_wrapper.cpp
|
g++ -O0 -g -std=c++20 $(INCS) -fPIC -c negentropy_wrapper.cpp
|
||||||
ar rcs $(TARGET) negentropy_wrapper.o
|
ar rcs $(TARGET) negentropy_wrapper.o
|
||||||
|
else
|
||||||
|
g++ -O0 -g -std=c++20 $(INCS) -shared -fPIC -o $(TARGET) $(NEGENTROPY_ROOT)negentropy_wrapper.cpp -lcrypto -lssl -L/opt/homebrew/lib/
|
||||||
endif
|
endif
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user