summaryrefslogtreecommitdiff
path: root/Makefile
blob: 1cc019ba39758a3d7a27bbc9f59e37a9793f1de9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CFLAGS = -Wall

all: debug

debug: CFLAGS += -g
debug: pez

san: CFLAGS += -g -fsanitize=address -fsanitize=undefined
san: pez

opt: CFLAGS += -Oz
opt: pez

pez: repl.c pez.c pez.h
	$(CC) -o$@ -lreadline $(CFLAGS) repl.c pez.c

clean:
	$(RM) pez

.PHONY: clean