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

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

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)
	./$^ $(ARGS)

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