aboutsummaryrefslogtreecommitdiff
path: root/deps/cpp-httplib/example/Makefile
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2021-04-27 13:45:54 +0200
committerToni Uhlig <matzeton@googlemail.com>2021-04-27 13:45:54 +0200
commit51d779256c74cc541da306db5629ed510df5a944 (patch)
treeec23431d0b9b3dac2a2a8ac8f7201e9da9c58632 /deps/cpp-httplib/example/Makefile
parentda307fb4c6b5028d50c09dec7265ce8715e035d5 (diff)
Switched from slow blocking cpp-httplib to libevent2.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'deps/cpp-httplib/example/Makefile')
-rw-r--r--deps/cpp-httplib/example/Makefile50
1 files changed, 0 insertions, 50 deletions
diff --git a/deps/cpp-httplib/example/Makefile b/deps/cpp-httplib/example/Makefile
deleted file mode 100644
index 931db09..0000000
--- a/deps/cpp-httplib/example/Makefile
+++ /dev/null
@@ -1,50 +0,0 @@
-
-#CXX = clang++
-CXXFLAGS = -std=c++11 -I.. -Wall -Wextra -pthread
-
-OPENSSL_DIR = /usr/local/opt/openssl
-OPENSSL_SUPPORT = -DCPPHTTPLIB_OPENSSL_SUPPORT -I$(OPENSSL_DIR)/include -L$(OPENSSL_DIR)/lib -lssl -lcrypto
-
-ZLIB_SUPPORT = -DCPPHTTPLIB_ZLIB_SUPPORT -lz
-
-BROTLI_DIR = /usr/local/opt/brotli
-# BROTLI_SUPPORT = -DCPPHTTPLIB_BROTLI_SUPPORT -I$(BROTLI_DIR)/include -L$(BROTLI_DIR)/lib -lbrotlicommon-static -lbrotlienc-static -lbrotlidec-static
-
-all: server client hello simplecli simplesvr upload redirect ssesvr ssecli benchmark
-
-server : server.cc ../httplib.h Makefile
- $(CXX) -o server $(CXXFLAGS) server.cc $(OPENSSL_SUPPORT) $(ZLIB_SUPPORT) $(BROTLI_SUPPORT)
-
-client : client.cc ../httplib.h Makefile
- $(CXX) -o client $(CXXFLAGS) client.cc $(OPENSSL_SUPPORT) $(ZLIB_SUPPORT) $(BROTLI_SUPPORT)
-
-hello : hello.cc ../httplib.h Makefile
- $(CXX) -o hello $(CXXFLAGS) hello.cc $(OPENSSL_SUPPORT) $(ZLIB_SUPPORT) $(BROTLI_SUPPORT)
-
-simplecli : simplecli.cc ../httplib.h Makefile
- $(CXX) -o simplecli $(CXXFLAGS) simplecli.cc $(OPENSSL_SUPPORT) $(ZLIB_SUPPORT) $(BROTLI_SUPPORT)
-
-simplesvr : simplesvr.cc ../httplib.h Makefile
- $(CXX) -o simplesvr $(CXXFLAGS) simplesvr.cc $(OPENSSL_SUPPORT) $(ZLIB_SUPPORT) $(BROTLI_SUPPORT)
-
-upload : upload.cc ../httplib.h Makefile
- $(CXX) -o upload $(CXXFLAGS) upload.cc $(OPENSSL_SUPPORT) $(ZLIB_SUPPORT) $(BROTLI_SUPPORT)
-
-redirect : redirect.cc ../httplib.h Makefile
- $(CXX) -o redirect $(CXXFLAGS) redirect.cc $(OPENSSL_SUPPORT) $(ZLIB_SUPPORT) $(BROTLI_SUPPORT)
-
-ssesvr : ssesvr.cc ../httplib.h Makefile
- $(CXX) -o ssesvr $(CXXFLAGS) ssesvr.cc $(OPENSSL_SUPPORT) $(ZLIB_SUPPORT) $(BROTLI_SUPPORT)
-
-ssecli : ssecli.cc ../httplib.h Makefile
- $(CXX) -o ssecli $(CXXFLAGS) ssecli.cc $(OPENSSL_SUPPORT) $(ZLIB_SUPPORT) $(BROTLI_SUPPORT)
-
-benchmark : benchmark.cc ../httplib.h Makefile
- $(CXX) -o benchmark $(CXXFLAGS) benchmark.cc $(OPENSSL_SUPPORT) $(ZLIB_SUPPORT) $(BROTLI_SUPPORT)
-
-pem:
- openssl genrsa 2048 > key.pem
- openssl req -new -key key.pem | openssl x509 -days 3650 -req -signkey key.pem > cert.pem
-
-clean:
- rm server client hello simplecli simplesvr upload redirect ssesvr sselci benchmark *.pem