Makefile
unknown
plain_text
a year ago
772 B
6
Indexable
1 CC = gcc 2 CFLAGS = -Wall -g 3 4 all: mytar 5 6 mytar: mytar.c create.o options.o header.o write.o 7 $(CC) -o mytar $(CFLAGS) options.o header.o create.o write.o mytar.c 8 9 create.o: create.c create.h 10 $(CC) -c $(CFLAGS) create.c create.h 11 12 options.o: options.c options.h 13 $(CC) -c $(CFLAGS) options.c options.h 14 15 header.o: header.c header.h 16 $(CC) -c $(CFLAGS) header.c header.h 17 18 write.o: write.c write.h 19 $(CC) -c $(CFLAGS) write.c write.h 20 21 test1: mytar 22 valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes ./mytar cvf test hello 23 24 clean: 25 rm mytar create.o options.o write.o create.h.gch options.h.gch header.h.gch write.h.gch
Editor is loading...
Leave a Comment