CC = gcc OBJS = main.o longcopy.o TARGETS = main all: $(TARGETS) main: main.o longcopy.o $(CC) main.o longcopy.o -o main main.o: main.c $(CC) -c main.c longcopy.o: longcopy.c $(CC) -c longcopy.c clean: rm -rf $(OBJS) *~ $(TARGETS)