TARGET=mazerator SRCS=$(TARGET).c maze.c position_stack.c utils.c CC=gcc CFLAGS=-Wall CFLAGS_DEBUG=-fdiagnostics-color=always -g all: $(TARGET) $(TARGET): $(TARGET).c $(CC) $(CFLAGS) -O2 $(SRCS) -o $(TARGET) .PHONY: debug clean debug: $(TARGET).c $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(SRCS) -o $(TARGET) clean: $(RM) $(TARGET)