CC = g++ CFLAGS = -Iinc -pthread -lrt VPATH = src OBJECTS := %.o list.o producer.o transformer.o consumer.o EXECUTE := main.out #test.out .PHONY: all clean all: $(EXECUTE) clean: rm $(EXECUTE) %.out: $(OBJECTS) $(CC) $(CFLAGS) -o $@ $^ %.o: %.cpp $(CC) $(CFLAGS) -c $<