Joel Grunbaum
2022-01-12 353657fa069326a4036f2c9872e420c85f44b4e9
Added optimisation and test exchange selection in Makefile
2 files modified
18 ■■■■ changed files
Makefile 14 ●●●●● patch | view | raw | blame | history
secrets.hpp 4 ●●● patch | view | raw | blame | history
Makefile
@@ -1,11 +1,23 @@
OS=$(shell uname)
CXX=g++
CXXFLAGS=-g -Wall --std=c++20
CXXFLAGS=-std=c++20
DEV=1
TEST=1
ifeq ($(DEV),1)
    CXXFLAGS += -Wall -g
else
    CXXFLAGS += -O3 -flto
endif
ifneq ($(OS),Darwin)
CXXFLAGS += -static
endif
ifeq ($(TEST),1)
    CXXFLAGS += -DTEST_EXCHANGE
endif
json=json.o
ws=easywsclient/easywsclient.o
main=${json} ${ws} protocol.o book.o
secrets.hpp
@@ -2,10 +2,8 @@
#include <string>
// #define TEST
constexpr const char* HOST = "sytev070";
#ifdef TEST
#ifdef TEST_EXCHANGE
constexpr const char* PORT = "9005";
#else
constexpr const char* PORT = "9000";