mirror of https://github.com/t1meshift/os_labs.git
25 lines
774 B
Makefile
25 lines
774 B
Makefile
|
|
||
|
ALL = vector-deadlock vector-global-order vector-try-wait vector-avoid-hold-and-wait vector-nolock
|
||
|
COMMON = vector-header.h main-common.c main-header.h
|
||
|
|
||
|
all: $(ALL)
|
||
|
|
||
|
clean:
|
||
|
rm -f $(ALL) *~
|
||
|
|
||
|
vector-deadlock: vector-deadlock.c $(COMMON)
|
||
|
gcc -o vector-deadlock vector-deadlock.c -Wall -pthread -O
|
||
|
|
||
|
vector-global-order: vector-global-order.c $(COMMON)
|
||
|
gcc -o vector-global-order vector-global-order.c -Wall -pthread -O
|
||
|
|
||
|
vector-try-wait: vector-try-wait.c $(COMMON)
|
||
|
gcc -o vector-try-wait vector-try-wait.c -Wall -pthread -O
|
||
|
|
||
|
vector-avoid-hold-and-wait: vector-avoid-hold-and-wait.c $(COMMON)
|
||
|
gcc -o vector-avoid-hold-and-wait vector-avoid-hold-and-wait.c -Wall -pthread -O
|
||
|
|
||
|
vector-nolock: vector-nolock.c $(COMMON)
|
||
|
gcc -o vector-nolock vector-nolock.c -Wall -pthread -O
|
||
|
|