aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 5ba401e082f0a1247e2eae559b9b9125725f41e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CC=clang
CFLAGS=-pedantic -Wall -Wextra -fsanitize=address -fsanitize=undefined -ggdb -fsanitize=address
OUT=

btree.out: impls/btree.cpp
	$(CC) $(CFLAGS) $^ -o $@

list.out: impls/list.cpp
	$(CC) $(CFLAGS) $^ -o $@

bsearch.out: impls/bsearch.cpp
	$(CC) $(CFLAGS) $^ -o $@

vec.out: impls/vec.c
	$(CC) $(CFLAGS) $^ -o $@

.PHONY: run
run: $(OUT)
	./$^

.PHONY: clean
clean:
	rm -v *.out *.txt;