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