2022-04-03 16:39:40 +00:00
|
|
|
|
|
|
|
CC = g++
|
2022-04-04 18:39:30 +00:00
|
|
|
CFLAGS = -Iinc -pthread -lrt
|
|
|
|
VPATH = src
|
2022-04-03 16:39:40 +00:00
|
|
|
|
2022-04-04 18:39:30 +00:00
|
|
|
OBJECTS := %.o list.o producer.o transformer.o consumer.o
|
|
|
|
EXECUTE := main.out test.out
|
2022-04-03 16:39:40 +00:00
|
|
|
|
|
|
|
.PHONY: all clean
|
|
|
|
|
|
|
|
all: $(EXECUTE)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm $(EXECUTE)
|
|
|
|
|
|
|
|
%.out: $(OBJECTS)
|
|
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
|
|
%.o: %.cpp
|
|
|
|
$(CC) $(CFLAGS) -c $<
|