Makefile
unknown
plain_text
2 years ago
862 B
4
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.gchEditor is loading...
Leave a Comment