23 lines
595 B
Makefile
23 lines
595 B
Makefile
CC=gcc --std=gnu99 -g
|
|
output=movies_by_year
|
|
|
|
all: movies_by_year.c movies_by_year.h csv_parser.o node.o input.o directory_list.o
|
|
$(CC) movies_by_year.c csv_parser.o node.o input.o directory_list.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
|
|
|
|
input.o: input.h input.c
|
|
$(CC) -c input.c -o input.o
|
|
|
|
directory_list.o: directory_list.c directory_list.h
|
|
$(CC) -c directory_list.c -o directory_list.o
|
|
|
|
run:
|
|
./movies_by_year movies_sample_1.csv
|
|
|
|
clean:
|
|
rm -fr *.o vgcore.* temp.movies.* $(output)
|