aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: f4b0180673b661dbd937d3339c58599cda031d7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)