aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-09-15 14:51:06 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-09-15 14:51:06 +0100
commite56169441b68fbdc79e9e5da4cc63f04ea737d1f (patch)
tree753682deac67e4105301f2f1d527992b764ae419 /Makefile
parent97b23e4f715ba87a15fd85eaa03dd885bcdf8369 (diff)
downloadalgorithms-e56169441b68fbdc79e9e5da4cc63f04ea737d1f.tar.gz
algorithms-e56169441b68fbdc79e9e5da4cc63f04ea737d1f.tar.bz2
algorithms-e56169441b68fbdc79e9e5da4cc63f04ea737d1f.zip
Triangle numbers implementation
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: