From aa0292e79625827a40aba000f2dd6ca684132529 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 5 Apr 2022 17:11:13 +0200 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9er=20un=20profil=20"debug"=20qui=20cont?= =?UTF-8?q?ient=20les=20warnings=20et=20le=20flag=20"-g",=20make=20sans=20?= =?UTF-8?q?argument=20compile=20avec=20l'optimisation=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 0e8e64e..0e30b13 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,5 @@ CXX = g++ -CXXFLAGS = -Wall -Wextra -O3 --std=c++17 -DEVFLAGS = -g +CXXFLAGS = --std=c++17 RM = rm SOURCES = $(wildcard src/*.cpp) @@ -11,7 +10,13 @@ EXE = ecosysteme %.cpp.o: src/%.cpp $(CXX) -c -o $@ $< $(CXXFLAGS) $(DEVFLAGS) -main: $(OBJETS) +main: CXXFLAGS += -O3 +main: compilation + +debug: CXXFLAGS += -Wall -Wextra -Wshadow -Wnon-virtual-dtor -pedantic -g +debug: compilation + +compilation: $(OBJETS) $(CXX) -o $(EXE) $(OBJETS) all: