From 599f7ea81bd0053795e1e19328f4515cdace0f6c Mon Sep 17 00:00:00 2001 From: "matthias@arch" Date: Wed, 1 Feb 2023 18:46:23 +0100 Subject: [PATCH] added more warnings --- src/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 71e3ad8..a905fdb 100755 --- a/src/Makefile +++ b/src/Makefile @@ -1,5 +1,6 @@ CXX = /usr/bin/g++ CXXFLAGS = -std=c++20 -MMD -MP -O3 +CXXFLAGS += -Wall -Wpedantic -Wextra SRCDIRS = $(wildcard */) IFLAGS = $(foreach dir,$(SRCDIRS), -I$(dir)) IFLAGS += $(foreach dir,$(SRCDIRS), -I../$(dir)) @@ -17,7 +18,7 @@ DEPENDS = ${OBJECTS:.o=.d} CXXFLAGS += $(IFLAGS) -.PHONY: install debug run clean docs test +.PHONY: install uninstall update debug run clean docs test # # BUILDING # @@ -43,6 +44,7 @@ $(OBJECT_DIRS): # # INSTALLATION # +update: uninstall install install: $(LIB) $(HEADER_INST) @{ [ -z "$(DESTDIR)" ] && echo "Please set the DESTDIR variable (probably to /usr or /usr/local)" && exit 1; } || true install -D -m 755 $< $(DESTDIR)/lib/$(subst ../,,$<)