From 41ddbec10d11b01ccc10bf7e1dc862a9f3e4c85f Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 8 Aug 2025 15:22:35 +1200 Subject: feat: Simplified API Had to restrict images to 8 bit depth sadly This could potentially be changed in the future by setting bit depth with templates and changing the data to be the specified bit depth --- GNUmakefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index af8403a..ae7e0db 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -4,12 +4,14 @@ SOURCE_DIR := ./src LIB_DIR := ./lib INCLUDE_DIR := ./include TEST_SRC_DIR := ./test +out ?= +INSTALL_DIR = $(out) # Flags CXX := g++ -CXXFLAGS := -std=c++20 -fsanitize=address -g +CXXFLAGS := -std=c++23 -fsanitize=address -g LINKFLAGS := -static-libasan -TEST_CXXFLAGS := -std=c++20 -I$(INCLUDE_DIR) -fsanitize=address -g +TEST_CXXFLAGS := -std=c++23 -I$(INCLUDE_DIR) -fsanitize=address -g TEST_LINKFLAGS := -L$(LIB_DIR) -ltehimage -static-libasan # Outputs @@ -44,11 +46,15 @@ $(OBJS_DIR)/%.o: $(TEST_SRC_DIR)/%.cpp $(TEST_SOURCE) $(TEST_HEADERS) # Phony -.PHONY: clean test +.PHONY: clean test install clean: rm -f $(LIB) rm -f $(OBJS_DIR)/*.o rm -f $(TEST) +install: $(LIB) + install -D -m 755 $(LIB) $(INSTALL_DIR)/lib/libtehimage.so + install -D -m 644 $(INCLUDE_DIR)/* $(INSTALL_DIR)/include/ + test: $(TEST) -- cgit v1.2.3