mirror of
https://github.com/logos-messaging/negentropy.git
synced 2026-01-02 14:03:07 +00:00
25 lines
596 B
Makefile
25 lines
596 B
Makefile
# Build a shared library of negentropy
|
|
|
|
#TODO: Need to add compilation flags based on OS
|
|
INCS = -I./ -I/opt/homebrew/include/
|
|
TARGET = libnegentropy.so
|
|
|
|
.PHONY: all clean install-deps
|
|
|
|
all: negentropy-cpp c-wrapper shared-lib
|
|
|
|
#TODO: Need to add compilation flags based on OS
|
|
install-deps:
|
|
brew install lmdb openssl
|
|
|
|
shared-lib: negentropy.o
|
|
g++ -o $(TARGET) negentropy.o -shared
|
|
|
|
negentropy-cpp:
|
|
g++ negentropy.h --std=c++20 -o negentropy.o $(INCS)
|
|
|
|
c-wrapper:
|
|
g++ negentropy_wrapper.h --std=c++20 -o negentropy_wrapper.o $(INCS) -I../test/cpp/lmdbxx/include/
|
|
|
|
clean:
|
|
rm -f negentropy.o
|