Makefile
unknown
plain_text
2 years ago
970 B
8
Indexable
CC = gcc
CFLAGS = -Wall -g
all: mytar
mytar: mytar.c create.o list.o options.o header.o write.o
$(CC) -o mytar $(CFLAGS) list.o 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
list.o: list.c list.h
$(CC) -c $(CFLAGS) list.c list.h
testCreate: mytar
./mytar cvf test testfile
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 list.h.gch list.o test header.o mytar create.o options.o write.o write.h.gch create.h.gch options.h.gch header.h.gchEditor is loading...
Leave a Comment