From 0bef191acd5a77544852e6a3daae2df05bd34a31 Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Wed, 19 Jan 2022 11:20:45 +0000
Subject: [PATCH] Reformat and change send to x-www-form-urlencoded

---
 Makefile |   41 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 41 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..2945672
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,41 @@
+OS=$(shell uname)
+CXX=g++
+CXXFLAGS=-std=c++20 -DNOSSL
+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
+
+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