aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 34cc3b3c3bd2e5a2ffa9ee9fd562d69fc658f6d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
TARGET=mazerator
SRCS=$(TARGET).c stack.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)