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