Cancel thread tasks using semaphore
This commit is contained in:
18
chp5_synchronize/cancel_threads_semaphore/Makefile
Normal file
18
chp5_synchronize/cancel_threads_semaphore/Makefile
Normal file
@@ -0,0 +1,18 @@
|
||||
CC=gcc
|
||||
CFLAGS=-o cancel_threads -Wall -lpthread -lrt
|
||||
SRCS=main.c
|
||||
|
||||
.DEFAULT_GOAL := build
|
||||
|
||||
build:
|
||||
$(CC) $(CFLAGS) -fsanitize=address -static-libasan $(SRCS)
|
||||
|
||||
release:
|
||||
$(CC) $(CFLAGS) $(SRCS)
|
||||
|
||||
debug:
|
||||
$(CC) $(CFLAGS) -fsanitize=address -static-libasan -ggdb $(SRCS)
|
||||
gdb -q cancel_threads
|
||||
|
||||
clean:
|
||||
rm -f cancel_threads
|
||||
Reference in New Issue
Block a user