added more warnings
This commit is contained in:
parent
0c01e743f8
commit
599f7ea81b
@ -1,5 +1,6 @@
|
|||||||
CXX = /usr/bin/g++
|
CXX = /usr/bin/g++
|
||||||
CXXFLAGS = -std=c++20 -MMD -MP -O3
|
CXXFLAGS = -std=c++20 -MMD -MP -O3
|
||||||
|
CXXFLAGS += -Wall -Wpedantic -Wextra
|
||||||
SRCDIRS = $(wildcard */)
|
SRCDIRS = $(wildcard */)
|
||||||
IFLAGS = $(foreach dir,$(SRCDIRS), -I$(dir))
|
IFLAGS = $(foreach dir,$(SRCDIRS), -I$(dir))
|
||||||
IFLAGS += $(foreach dir,$(SRCDIRS), -I../$(dir))
|
IFLAGS += $(foreach dir,$(SRCDIRS), -I../$(dir))
|
||||||
@ -17,7 +18,7 @@ DEPENDS = ${OBJECTS:.o=.d}
|
|||||||
|
|
||||||
CXXFLAGS += $(IFLAGS)
|
CXXFLAGS += $(IFLAGS)
|
||||||
|
|
||||||
.PHONY: install debug run clean docs test
|
.PHONY: install uninstall update debug run clean docs test
|
||||||
#
|
#
|
||||||
# BUILDING
|
# BUILDING
|
||||||
#
|
#
|
||||||
@ -43,6 +44,7 @@ $(OBJECT_DIRS):
|
|||||||
#
|
#
|
||||||
# INSTALLATION
|
# INSTALLATION
|
||||||
#
|
#
|
||||||
|
update: uninstall install
|
||||||
install: $(LIB) $(HEADER_INST)
|
install: $(LIB) $(HEADER_INST)
|
||||||
@{ [ -z "$(DESTDIR)" ] && echo "Please set the DESTDIR variable (probably to /usr or /usr/local)" && exit 1; } || true
|
@{ [ -z "$(DESTDIR)" ] && echo "Please set the DESTDIR variable (probably to /usr or /usr/local)" && exit 1; } || true
|
||||||
install -D -m 755 $< $(DESTDIR)/lib/$(subst ../,,$<)
|
install -D -m 755 $< $(DESTDIR)/lib/$(subst ../,,$<)
|
||||||
|
Loading…
Reference in New Issue
Block a user