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