Make default the release one
This commit is contained in:
parent
f07503e647
commit
6ef675d765
1 changed files with 5 additions and 5 deletions
10
Makefile
10
Makefile
|
@ -54,13 +54,13 @@ LDFLAGS += -lGL4Dummies $(shell sdl2-config --libs) -lSDL2_mixer -lSDL2_image
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
|
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
# Par défaut
|
# Version finale avec optimisations (défaut)
|
||||||
$(PROGNAME): CFLAGS += -Wall -Wextra -Wshadow -pedantic -g -Wsign-conversion -fanalyzer
|
$(PROGNAME): CFLAGS += -O3
|
||||||
$(PROGNAME): compilation
|
$(PROGNAME): compilation
|
||||||
|
|
||||||
# Version finale avec optimisations
|
# Débug
|
||||||
release: CFLAGS += -O3
|
debug: CFLAGS += -Wall -Wextra -Wshadow -pedantic -g -Wsign-conversion -fanalyzer
|
||||||
release: compilation
|
debug: compilation
|
||||||
|
|
||||||
compilation: $(OBJ)
|
compilation: $(OBJ)
|
||||||
$(CC) $(OBJ) $(LDFLAGS) -o $(PROGNAME)
|
$(CC) $(OBJ) $(LDFLAGS) -o $(PROGNAME)
|
||||||
|
|
Reference in a new issue