Makefile
unknown
plain_text
a year ago
862 B
3
Indexable
CC = gcc CFLAGS = -Wall -g all: mytar mytar: mytar.c create.o options.o header.o write.o $(CC) -o mytar $(CFLAGS) options.o header.o write.o create.o mytar.c create.o: create.c create.h $(CC) -c $(CFLAGS) create.c create.h options.o: options.c options.h $(CC) -c $(CFLAGS) options.c options.h header.o: header.c header.h $(CC) -c $(CFLAGS) header.c header.h write.o: write.c write.h $(CC) -c $(CFLAGS) write.c write.h testCreate: mytar ./mytar cvf test hello testVal: mytar valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes ./mytar cvf test testfile testValDir: mytar valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes ./mytar cvf test TestDir clean: rm test mytar create.o options.o write.o write.h.gch create.h.gch options.h.gch header.h.gch
Editor is loading...
Leave a Comment