From 6d504da381d07115e7bc47b07276ba9105c541c0 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 25 Jun 2023 07:33:06 +0100 Subject: (*)~reworking this project --- Makefile | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7112d2f..5a4e524 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,11 @@ CC=clang++ CFLAGS=-pedantic -Wall -ggdb VFLAGS=--show-leak-kinds=all --leak-check=full +OUT= -list: list.cpp +$(OUT): $(OUT).cpp $(CC) $(CFLAGS) $^ -o $@ -.PHONY: memcheck_list -memcheck_list: list - valgrind $(VFLAGS) ./$^; - -btree: btree.cpp - $(CC) $(CFLAGS) $^ -o $@ - -.PHONY: memcheck_btree -memcheck_btree: btree +.PHONY: memcheck +memcheck: $(OUT) valgrind $(VFLAGS) ./$^; -- cgit v1.2.3-13-gbd6f