From e8c910e52d1807e2fcca3b43d80a9df6acac5387 Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Wed, 12 Jan 2022 06:26:46 +0000 Subject: [PATCH] write price level to each book --- Makefile | 43 ++++++++++++++++++++++++++++++++++--------- 1 files changed, 34 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 96fba56..2945672 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,41 @@ -CC=gcc +OS=$(shell uname) CXX=g++ -CXXFLAGS=-g -Wall -std=c++20 +CXXFLAGS=-std=c++20 -DNOSSL +DEV=1 +TEST=1 -.PHONY: default all -default: all +ifeq ($(DEV),1) + CXXFLAGS += -Wall -g +else + CXXFLAGS += -O3 -flto +endif -all: exec +ifneq ($(OS),Darwin) +CXXFLAGS += -static +endif -exec: main.o book.o - ${CXX} -o $@ $^ +ifeq ($(TEST),1) + CXXFLAGS += -DTEST_EXCHANGE +endif -%: %.cpp %.hpp - ${CXX} ${CXXFLAGS} -o $@ $^ +ws=easywsclient/easywsclient.o +xml=ftplibpp/ftplib.o +main=${ws} ${xml} json.o bom.o protocol.o book.o +default: test click bot +test: test.o strat.o ${main} + ${CXX} ${CXXFLAGS} ${LDFLAGS} -o $@ $^ + +click: click.o ${main} + ${CXX} ${CXXFLAGS} ${LDFLAGS} -o $@ $^ + +bot: bot.o strat.o ${main} + ${CXX} ${CXXFLAGS} ${LDFLAGS} -o $@ $^ + +%.o: %.cpp + ${CXX} ${CXXFLAGS} -c -o $@ $^ + +.PHONY: clean +clean: + rm -f ${main} test click bot -- Gitblit v1.9.3