add makefile
This commit is contained in:
parent
72f15de1d0
commit
151ab2977f
1 changed files with 14 additions and 0 deletions
14
movies/makefile
Normal file
14
movies/makefile
Normal 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)
|
Loading…
Reference in a new issue