|
@@ -5,7 +5,7 @@ OPENSSL_DIR = /usr/local/opt/openssl
|
|
|
OPENSSL_SUPPORT = -DCPPHTTPLIB_OPENSSL_SUPPORT -I$(OPENSSL_DIR)/include -L$(OPENSSL_DIR)/lib -lssl -lcrypto
|
|
OPENSSL_SUPPORT = -DCPPHTTPLIB_OPENSSL_SUPPORT -I$(OPENSSL_DIR)/include -L$(OPENSSL_DIR)/lib -lssl -lcrypto
|
|
|
ZLIB_SUPPORT = -DCPPHTTPLIB_ZLIB_SUPPORT -lz
|
|
ZLIB_SUPPORT = -DCPPHTTPLIB_ZLIB_SUPPORT -lz
|
|
|
|
|
|
|
|
-all: server client hello simplesvr redirect benchmark
|
|
|
|
|
|
|
+all: server client hello simplesvr upload redirect benchmark
|
|
|
|
|
|
|
|
server : server.cc ../httplib.h Makefile
|
|
server : server.cc ../httplib.h Makefile
|
|
|
$(CXX) -o server $(CXXFLAGS) server.cc $(OPENSSL_SUPPORT) $(ZLIB_SUPPORT)
|
|
$(CXX) -o server $(CXXFLAGS) server.cc $(OPENSSL_SUPPORT) $(ZLIB_SUPPORT)
|
|
@@ -19,6 +19,9 @@ hello : hello.cc ../httplib.h Makefile
|
|
|
simplesvr : simplesvr.cc ../httplib.h Makefile
|
|
simplesvr : simplesvr.cc ../httplib.h Makefile
|
|
|
$(CXX) -o simplesvr $(CXXFLAGS) simplesvr.cc $(OPENSSL_SUPPORT) $(ZLIB_SUPPORT)
|
|
$(CXX) -o simplesvr $(CXXFLAGS) simplesvr.cc $(OPENSSL_SUPPORT) $(ZLIB_SUPPORT)
|
|
|
|
|
|
|
|
|
|
+upload : upload.cc ../httplib.h Makefile
|
|
|
|
|
+ $(CXX) -o upload $(CXXFLAGS) upload.cc $(OPENSSL_SUPPORT) $(ZLIB_SUPPORT)
|
|
|
|
|
+
|
|
|
redirect : redirect.cc ../httplib.h Makefile
|
|
redirect : redirect.cc ../httplib.h Makefile
|
|
|
$(CXX) -o redirect $(CXXFLAGS) redirect.cc $(OPENSSL_SUPPORT) $(ZLIB_SUPPORT)
|
|
$(CXX) -o redirect $(CXXFLAGS) redirect.cc $(OPENSSL_SUPPORT) $(ZLIB_SUPPORT)
|
|
|
|
|
|
|
@@ -30,4 +33,4 @@ pem:
|
|
|
openssl req -new -key key.pem | openssl x509 -days 3650 -req -signkey key.pem > cert.pem
|
|
openssl req -new -key key.pem | openssl x509 -days 3650 -req -signkey key.pem > cert.pem
|
|
|
|
|
|
|
|
clean:
|
|
clean:
|
|
|
- rm server client hello simplesvr redirect *.pem
|
|
|
|
|
|
|
+ rm server client hello simplesvr upload redirect *.pem
|