commit | author | age
|
d14f48
|
1 |
OS=$(shell uname) |
83c048
|
2 |
CXX=g++ |
d14f48
|
3 |
CXXFLAGS=-g -Wall --std=c++20 |
83c048
|
4 |
|
d14f48
|
5 |
ifneq ($(OS),Darwin) |
JG |
6 |
CXXFLAGS += -static |
|
7 |
endif |
83c048
|
8 |
|
JG |
9 |
json=json.o |
|
10 |
ws=easywsclient/easywsclient.o |
|
11 |
main=${json} ${ws} protocol.o book.o |
|
12 |
|
|
13 |
default: test click bot |
|
14 |
|
|
15 |
test: test.o strat.o ${main} |
|
16 |
${CXX} ${CXXFLAGS} ${LDFLAGS} -o $@ $^ |
|
17 |
|
|
18 |
click: click.o ${main} |
|
19 |
${CXX} ${CXXFLAGS} ${LDFLAGS} -o $@ $^ |
|
20 |
|
|
21 |
bot: bot.o strat.o ${main} |
|
22 |
${CXX} ${CXXFLAGS} ${LDFLAGS} -o $@ $^ |
|
23 |
|
|
24 |
%.o: %.cpp |
|
25 |
${CXX} ${CXXFLAGS} -c -o $@ $^ |
|
26 |
|
|
27 |
.PHONY: clean |
|
28 |
clean: |
|
29 |
rm -f ${main} test click bot |