add makefile

This commit is contained in:
stitchy 2023-10-12 14:25:21 -07:00
parent 72f15de1d0
commit 151ab2977f
Signed by: stitchy
SSH key fingerprint: SHA256:yz2SoxdnY67tfY5Jzb0f2v8f5W3o/IF359kbcquWip8

14
movies/makefile Normal file
View file

@ -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)