diff options
| author | Dylan <boss@tehbox.org> | 2025-08-08 15:22:35 +1200 |
|---|---|---|
| committer | Dylan <boss@tehbox.org> | 2025-08-08 15:38:59 +1200 |
| commit | 41ddbec10d11b01ccc10bf7e1dc862a9f3e4c85f (patch) | |
| tree | c4775a629588419803320818fc1458f6d35e8ae8 /GNUmakefile | |
| parent | 5823a8dff5c6c565c9b253b122d2baeb767b72e2 (diff) | |
| download | tehimage-41ddbec10d11b01ccc10bf7e1dc862a9f3e4c85f.tar.gz tehimage-41ddbec10d11b01ccc10bf7e1dc862a9f3e4c85f.zip | |
feat: Simplified APIv0.0.1
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
Diffstat (limited to 'GNUmakefile')
| -rw-r--r-- | GNUmakefile | 12 |
1 files changed, 9 insertions, 3 deletions
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) |
