aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5ba401e..5c9d4f8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,10 @@
-CC=clang
+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 $@
@@ -16,7 +20,7 @@ vec.out: impls/vec.c
.PHONY: run
run: $(OUT)
- ./$^
+ ./$^ $(ARGS)
.PHONY: clean
clean: