negentropy/cpp/Makefile

26 lines
593 B
Makefile
Raw Normal View History

# Build a shared library of negentropy
#TODO: Need to add compilation flags based on OS
2024-02-16 15:15:59 +05:30
INCS = -I./ -I/opt/homebrew/include/
TARGET = libnegentropy.so
2024-02-16 15:15:59 +05:30
.PHONY: all clean install-deps
2024-02-16 15:15:59 +05:30
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)
2024-02-16 15:15:59 +05:30
c-wrapper:
g++ negentropy_wrapper.h --std=c++20 -o negentropy_wrapper.o $(INCS) -I./vendor/lmdbxx/include/
clean:
rm -f negentropy.o