From 0594ac9ba0f38944ef810b5ac48a2067b1ce5a09 Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Tue, 11 Jan 2022 08:00:10 +0000
Subject: [PATCH] Copied libcurl's ftp example

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

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c4a87c1
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,29 @@
+OS=$(shell uname)
+CXX=g++
+CXXFLAGS=-g -Wall --std=c++20
+
+ifneq ($(OS),Darwin)
+CXXFLAGS += -static
+endif
+
+json=json.o
+ws=easywsclient/easywsclient.o
+main=${json} ${ws} 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