Always O3
This commit is contained in:
parent
f0eb48751a
commit
bd9048595e
1 changed files with 2 additions and 3 deletions
5
Makefile
5
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
|
||||
|
|
Reference in a new issue