From 38866c562ee404eb52a536785a5e7fafe7951185 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Tue, 26 Jan 2021 14:22:46 +0100 Subject: submission lab0 --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0ac8095 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +SRC = linked_list.c +OBJ = $(SRC:.c=.o) + +all: linked_list + +.c.o: + $(CC) -c $< + +linked_list: $(OBJ) + $(CC) -o $@ $(OBJ) + +run: linked_list + ./linked_list + +valgrind: linked_list + valgrind --tool=memcheck --leak-check=yes ./linked_list + +clean: + rm -f linked_list $(OBJ) + +.PHONY: all run valgrind clean -- cgit v1.2.1