Untitled

 avatar
unknown
plain_text
a year ago
449 B
7
Indexable
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
Editor is loading...
Leave a Comment