Added rand() to producer
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
INC := -I include
|
||||
|
||||
all: compile exec
|
||||
all: compile link
|
||||
|
||||
compile:
|
||||
gcc $(INC) -c -o build/driver.o src/driver.c
|
||||
gcc $(INC) -c -o build/producer.o src/producer.c
|
||||
gcc $(INC) -c -o build/consumer.o src/consumer.c
|
||||
|
||||
exec:
|
||||
link:
|
||||
gcc -o bin/driver.out build/*.o
|
||||
|
||||
exec: compile link
|
||||
./bin/driver.out
|
||||
|
||||
clean:
|
||||
|
||||
Reference in New Issue
Block a user