From 2842d7ab7faafece663ac97ce4c967681132dd1e Mon Sep 17 00:00:00 2001 From: Avril Date: Fri, 4 Jun 2021 23:21:48 +0100 Subject: [PATCH] update Makefile new target: all --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1010266..ecd33e2 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ OPT_FLAGS?= $(addprefix -march=,$(MARCH)) -fgraphite -fopenmp -floop-parallelize CXX_OPT_FLAGS?= $(OPT_FLAGS) -felide-constructors CFLAGS += $(COMMON_FLAGS) --std=gnu11 -CXXFLAGS += $(COMMON_FLAGS) --std=gnu++20 -fno-exceptions +CXXFLAGS += $(COMMON_FLAGS) --std=gnu++20 #-fno-exceptions LDFLAGS += STRIP=strip @@ -52,6 +52,13 @@ debug: | dirs $(PROJECT)-debug.a -$(MAKE) dirs $(MAKE) $(PROJECT)-debug.so +# Rebuild both release and debug targets from scratch +.PHONY: all +all: | clean + -$(MAKE) release + -$(MAKE) clean-rebuild + -$(MAKE) debug + # Targets dirs: