| | |
| | | OS=$(shell uname) |
| | | CXX=g++ |
| | | CXXFLAGS=-g -Wall -static |
| | | #LDFLAGS=-rpath=/lib64/libstdc++.so.6 |
| | | CXXFLAGS=-std=c++20 |
| | | DEV=1 |
| | | TEST=1 |
| | | |
| | | ifeq ($(DEV),1) |
| | | CXXFLAGS += -Wall -g |
| | | else |
| | | CXXFLAGS += -O3 -flto |
| | | endif |
| | | |
| | | json=json.o |
| | | ifneq ($(OS),Darwin) |
| | | CXXFLAGS += -static |
| | | else |
| | | CXXFLAGS += -I/usr/local/opt/curl/include |
| | | LDFLAGS += -L/usr/local/opt/curl/lib |
| | | endif |
| | | |
| | | ifeq ($(TEST),1) |
| | | CXXFLAGS += -DTEST_EXCHANGE |
| | | endif |
| | | |
| | | ws=easywsclient/easywsclient.o |
| | | main=${json} ${ws} protocol.o book.o |
| | | main=${ws} json.o bom.o protocol.o book.o |
| | | |
| | | default: test click bot |
| | | |