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