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 ../,,$<)