added more warnings

This commit is contained in:
matthias@arch 2023-02-01 18:46:23 +01:00
parent 0c01e743f8
commit 599f7ea81b

View File

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