-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
31 lines (22 loc) · 791 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
28
29
30
31
CXX = g++
CXXVERSION = -std=c++2a
CXXWARNS = -Wall -Wextra -Wpedantic -Wno-reorder
CXXFLAGS = $(CXXVERSION) $(CXXWARNS) -g3 -O2 -pthread
CLIENT = client
PROXY = proxy
COMMON = common
all: $(CLIENT) $(PROXY) $(COMMON)
$(CXX) $(CXXFLAGS) $(COMMON)/reloc_common.o $(CLIENT)/reloc_radio-client.o -o radio-client
$(CXX) $(CXXFLAGS) $(COMMON)/reloc_common.o $(PROXY)/reloc_radio-proxy.o -o radio-proxy
.PHONY: $(CLIENT) $(PROXY) $(COMMON) all clean
$(CLIENT):
$(MAKE) CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" -C $(CLIENT)
$(PROXY):
$(MAKE) CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" -C $(PROXY)
$(COMMON):
$(MAKE) CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)" -C $(COMMON)
clean:
rm -f radio-client radio-proxy
$(MAKE) -C $(CLIENT) clean
$(MAKE) -C $(PROXY) clean
$(MAKE) -C $(COMMON) clean