mirror of
https://github.com/logos-messaging/negentropy.git
synced 2026-01-02 22:13:10 +00:00
19 lines
369 B
Makefile
19 lines
369 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
|
|
|
|
all: negentropy-cpp shared-lib
|
|
|
|
shared-lib: negentropy.o
|
|
g++ -o $(TARGET) negentropy.o -shared
|
|
|
|
negentropy-cpp:
|
|
g++ negentropy.h --std=c++20 -o negentropy.o $(INCS)
|
|
|
|
|
|
clean:
|
|
rm -f negentropy.o
|