diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2021-11-23 06:10:15 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2021-11-23 06:14:06 +0000 |
commit | 855e38cde4fbc02fdcc9dbd47f2063cfe60a4b68 (patch) | |
tree | 357e7efc3c48b17b92e301c7344e0f3242bb5d07 | |
parent | 2808890b2d1026cf8d3af7c968e6bab95015d86d (diff) | |
download | algorithms-855e38cde4fbc02fdcc9dbd47f2063cfe60a4b68.tar.gz algorithms-855e38cde4fbc02fdcc9dbd47f2063cfe60a4b68.tar.bz2 algorithms-855e38cde4fbc02fdcc9dbd47f2063cfe60a4b68.zip |
(General)~extract valgrind memcheck flags to VFLAGS variable
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,16 +1,17 @@ CC=clang++ CFLAGS=-pedantic -Wall -ggdb +VFLAGS=--show-leak-kinds=all --leak-check=full list: list.cpp $(CC) $(CFLAGS) $^ -o $@ .PHONY: memcheck_list memcheck_list: list - valgrind --show-leak-kinds=all --leak-check=full ./list; + valgrind $(VFLAGS) ./$^; btree: btree.cpp $(CC) $(CFLAGS) $^ -o $@ .PHONY: memcheck_btree memcheck_btree: btree - valgrind --show-leak-kinds=all --leak-check=full ./btree; + valgrind $(VFLAGS) ./$^; |