Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
449 B
4
Indexable
Never
CC = gcc
CFLAGS = -Wall -g

all: mytar

mytar: mytar.c create.o options.o header.o
        $(CC) -o mytar $(CFLAGS) options.o header.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

clean:
        rm mytar create.o options.o create.h.gch options.h.gch
Leave a Comment