CC=gcc CSTD=c17 CFLAGS=-Wall -O2 --std=$(CSTD) CDEBUGFLAGS=-Wall -g -O0 --std=$(CSTD) # -fno-stack-protector SRCDIR=src SRCS=$(wildcard $(SRCDIR)/*.c) TARGET=mazerator .PHONY: debug clean all: $(TARGET) $(TARGET): $(SRCS) $(CC) $(CFLAGS) $(SRCS) -o $(TARGET) debug: $(CC) $(CDEBUGFLAGS) $(SRCS) -o $(TARGET) clean: $(RM) $(TARGET)