Make default the release one

This commit is contained in:
Mylloon 2022-05-19 17:20:17 +02:00
parent f07503e647
commit 6ef675d765
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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)