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