CC = gcc CFLAGS = -std=c99 -pedantic RM = rm SOURCES = $(wildcard src/*.c) OBJETS = $(patsubst %.c,%.c.o,$(notdir $(SOURCES))) EXE = othello %.c.o: src/%.c $(CC) -c -o $@ $< $(CFLAGS) $(DEVFLAGS) main: CFLAGS += -O3 main: compilation dev: CFLAGS += -Wall -Wextra -Wshadow -Wcast-align -Wstrict-prototypes -fanalyzer -fsanitize=undefined -g dev: compilation compilation: $(OBJETS) $(CC) -o $(EXE) $(OBJETS) all: main clean: $(RM) $(OBJETS) $(EXE)