From 6ef675d7651fd086e1ca2c001b74442a60f6a8f7 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 19 May 2022 17:20:17 +0200 Subject: [PATCH] Make default the release one --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index cefe73f..a245dc2 100644 --- a/Makefile +++ b/Makefile @@ -54,13 +54,13 @@ LDFLAGS += -lGL4Dummies $(shell sdl2-config --libs) -lSDL2_mixer -lSDL2_image %.o: %.c $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@ -# Par défaut -$(PROGNAME): CFLAGS += -Wall -Wextra -Wshadow -pedantic -g -Wsign-conversion -fanalyzer +# Version finale avec optimisations (défaut) +$(PROGNAME): CFLAGS += -O3 $(PROGNAME): compilation -# Version finale avec optimisations -release: CFLAGS += -O3 -release: compilation +# Débug +debug: CFLAGS += -Wall -Wextra -Wshadow -pedantic -g -Wsign-conversion -fanalyzer +debug: compilation compilation: $(OBJ) $(CC) $(OBJ) $(LDFLAGS) -o $(PROGNAME)