From ede2e8bfc0ae9263f57f6013ca379c89b93f36af Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 20 Nov 2021 22:58:43 +0000 Subject: (General)+makefile for common recipes that I'll use in this project Just write a few lines and it saves so much time. Don't try to automate it too much though. --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6cfba06 --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +CC=clang++ +CFLAGS=-pedantic -Wall + +list: list.cpp + $(CC) $(CFLAGS) $^ -o $@ + +.PHONY: memcheck_list +memcheck_list: list + valgrind --leak-check=full ./list; -- cgit v1.2.3-13-gbd6f