diff options
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -2,11 +2,17 @@ TARGET=mazerator SRCS=$(TARGET).c stack.c CC=gcc CFLAGS=-Wall +CFLAGS_DEBUG=-fdiagnostics-color=always -g all: $(TARGET) $(TARGET): $(TARGET).c - $(CC) $(CFLAGS) $(SRCS) -o $(TARGET) + $(CC) $(CFLAGS) -O2 $(SRCS) -o $(TARGET) + +.PHONY: debug clean + +debug: $(TARGET).c + $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $(SRCS) -o $(TARGET) clean: $(RM) $(TARGET) |