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