From bd9048595e1cada742bb0cdf266f9de1dc882755 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 15 Nov 2022 00:26:11 +0100 Subject: [PATCH] Always O3 --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 786d3c1..fe04a58 100644 --- a/Makefile +++ b/Makefile @@ -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