mirror of
https://github.com/logos-messaging/negentropy.git
synced 2026-01-07 16:33:07 +00:00
chore: update makefile to give support major os
This commit is contained in:
parent
f152076994
commit
992ea9e22b
@ -1,7 +1,8 @@
|
|||||||
# Build a shared library of negentropy
|
# Build a shared library of negentropy
|
||||||
|
|
||||||
#TODO: Need to add compilation flags based on OS
|
# Define the root directory of the negentropy project; this absolute path mechanism works across all major os
|
||||||
INCS = -I./ -I/opt/homebrew/include/ -I./vendor/lmdbxx/include/
|
NEGENTROPY_ROOT := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
|
||||||
|
INCS = -I$(NEGENTROPY_ROOT) -I/opt/homebrew/include/ -I$(NEGENTROPY_ROOT)/vendor/lmdbxx/include/
|
||||||
TARGET = libnegentropy.so
|
TARGET = libnegentropy.so
|
||||||
|
|
||||||
.PHONY: all clean install-deps precompiled-header shared-lib
|
.PHONY: all clean install-deps precompiled-header shared-lib
|
||||||
@ -14,10 +15,10 @@ install-deps:
|
|||||||
|
|
||||||
# Generate 'negentropy.h.gch'
|
# Generate 'negentropy.h.gch'
|
||||||
precompiled-header:
|
precompiled-header:
|
||||||
g++ -O0 --std=c++20 -Wall -fexceptions -g negentropy.h $(INCS)
|
g++ -O0 --std=c++20 -Wall -fexceptions -g $(NEGENTROPY_ROOT)negentropy.h $(INCS)
|
||||||
|
|
||||||
shared-lib:
|
shared-lib:
|
||||||
g++ -O0 -g -std=c++20 $(INCS) -shared -fPIC -o $(TARGET) negentropy_wrapper.cpp -lcrypto -lssl -L/opt/homebrew/lib/
|
g++ -O0 -g -std=c++20 $(INCS) -shared -fPIC -o $(TARGET) $(NEGENTROPY_ROOT)negentropy_wrapper.cpp -lcrypto -lssl -L/opt/homebrew/lib/
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(TARGET) negentropy.h.gch libnegentropy.so
|
rm -f $(TARGET) negentropy.h.gch libnegentropy.so
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user