negentropy/cpp/Makefile
2024-02-16 15:15:59 +05:30

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