Always O3

This commit is contained in:
Mylloon 2022-11-15 00:26:11 +01:00
parent f0eb48751a
commit bd9048595e
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -1,5 +1,5 @@
CC = gcc
CFLAGS = -std=c11 -I. -I/usr/include/SDL2
CFLAGS = -I. -I/usr/include/SDL2 -std=c11 -O3
RM = rm
LDFLAGS = -lm -lGL -lGL4Dummies -lSDL2
@ -9,9 +9,8 @@ OBJECTS = $(patsubst %.c,%.c.o,$(notdir $(SOURCES)))
EXE = othello
%.c.o: src/%.c
$(CC) -c -o $@ $< $(CFLAGS) $(DEVFLAGS)
$(CC) $(CFLAGS) $(DEVFLAGS) -c $< -o $@
main: CFLAGS += -O3
main: compilation
dev: CFLAGS += -Wall -Wextra -Wshadow -Wcast-align -Wstrict-prototypes