From 151ab2977f4c8e87d50bd8d50f90a7bc6e69e6a9 Mon Sep 17 00:00:00 2001 From: stitchy Date: Thu, 12 Oct 2023 14:25:21 -0700 Subject: [PATCH] add makefile --- movies/makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 movies/makefile diff --git a/movies/makefile b/movies/makefile new file mode 100644 index 0000000..6172042 --- /dev/null +++ b/movies/makefile @@ -0,0 +1,14 @@ +CC=gcc --std=c99 -g +output=movies + +all: movies.c csv_parser.o node.o + $(CC) movies.c csv_parser.o node.o -o $(output) + +csv_parser.o: csv_parser.c csv_parser.h + $(CC) -c csv_parser.c -o csv_parser.o + +node.o: node.c node.h + $(CC) -c node.c -o node.o + +clean: + rm -f *.o vgcore.* $(output)