2023-10-12 14:25:21 -07:00
|
|
|
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
|
|
|
|
|
2023-10-13 01:39:26 -07:00
|
|
|
run:
|
|
|
|
./movies movies_sample_1.csv
|
|
|
|
|
2023-10-12 14:25:21 -07:00
|
|
|
clean:
|
|
|
|
rm -f *.o vgcore.* $(output)
|