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