-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (19 loc) · 975 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Compiler settings and get all binaries
CXX = g++
CXXFLAGS = -std=c++20 -Wall
SRC = $(wildcard *.cc)
BIN = $(SRC:.cc=)
# Rules
default: assemble_teams_using_latch bank_account_using_mutex_locks cake_baking_using_barriers limit_access_to_db_using_semaphore
assemble_teams_using_latch: assemble_teams_using_latch.cc
$(CXX) $(CXXFLAGS) -o assemble_teams_using_latch assemble_teams_using_latch.cc
bank_account_using_mutex_locks: bank_account_using_mutex_locks.cc
$(CXX) $(CXXFLAGS) -o bank_account_using_mutex_locks bank_account_using_mutex_locks.cc
cake_baking_using_barriers: cake_baking_using_barriers.cc
$(CXX) $(CXXFLAGS) -o cake_baking_using_barriers cake_baking_using_barriers.cc
limit_access_to_db_using_semaphore: limit_access_to_db_using_semaphore.cc
$(CXX) $(CXXFLAGS) -o limit_access_to_db_using_semaphore limit_access_to_db_using_semaphore.cc
clean:
@$(RM) $(BIN)
# Declare that the targets default and clean are not actual files
.PHONY: default clean