1producer_consumer_00 : producer_consumer_00.o \
2 producer.o \
3 consumer.o \
4 thread.o \
5 mutex.o
6
7 g++ producer_consumer_00.o \
8 producer.o \
9 consumer.o \
10 thread.o \
11 mutex.o \
12 -l pthread \
13 -o producer_consumer_00
14
15producer_consumer_00.o : producer_consumer_00.cpp \
16 producer.h \
17 consumer.h \
18 cubby_hole.cpp
19
20 g++ -c producer_consumer_00.cpp
21
22producer.o : producer.cpp \
23 thread.h \
24 mutex.h \
25 cubby_hole.cpp
26
27 g++ -c producer.cpp
28
29consumer.o : consumer.cpp \
30 thread.h \
31 mutex.h \
32 cubby_hole.cpp
33
34 g++ -c consumer.cpp
35
36thread.o : thread.cpp \
37 thread.h
38
39 g++ -c thread.cpp
40
41mutex.o : mutex.cpp \
42 mutex.h
43
44 g++ -c mutex.cpp