Yurttas/PL/OOL/Cplusplus/F/02/08/01/00/make.producer consumer 00

From ZCubes Wiki
Revision as of 21:50, 6 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="make" line start="1" enclose="div">producer_consumer_00 : producer_consumer_00.o \ producer.o \ consumer.o...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
 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