summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/mongoose/examples/websocket_ssl_proxy
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-03-10 08:05:28 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-03-10 08:05:28 +0100
commit1ecbc8f95f9b2cdcaeddf7f8594b93d805aa75fa (patch)
treeb8548463867f481d3f44d3ee33e927f2a8a65da8 /3rdparty/mongoose/examples/websocket_ssl_proxy
parent1c885a2014132f39b2526f66bcc2716bc666f244 (diff)
update 3rdparty libs
Diffstat (limited to '3rdparty/mongoose/examples/websocket_ssl_proxy')
-rw-r--r--3rdparty/mongoose/examples/websocket_ssl_proxy/Makefile18
1 files changed, 15 insertions, 3 deletions
diff --git a/3rdparty/mongoose/examples/websocket_ssl_proxy/Makefile b/3rdparty/mongoose/examples/websocket_ssl_proxy/Makefile
index bd3f6be1297..968f1aca066 100644
--- a/3rdparty/mongoose/examples/websocket_ssl_proxy/Makefile
+++ b/3rdparty/mongoose/examples/websocket_ssl_proxy/Makefile
@@ -2,14 +2,26 @@
# All rights reserved
PROG = ws_ssl
-CFLAGS = -W -Wall -I../.. -I. -pthread -g -O0 $(CFLAGS_EXTRA)
+CFLAGS = -W -Wall -I../.. -I. -pthread -g -O0 -DMONGOOSE_ENABLE_THREADS -DNS_ENABLE_SSL -DSSL_WRAPPER_USE_AS_LIBRARY $(CFLAGS_EXTRA)
+LDFLAGS = -lssl
SOURCES = ws_ssl.c ../../mongoose.c ssl_wrapper.c
+# PolarSSL paths and flags
+POLARSSL_PATH = /usr/local
+POLARSSLCOMPAT_PATH = ./../../../polar
+SOURCES_POLAR = $(SOURCES) $(POLARSSLCOMPAT_PATH)/polarssl_compat.c
+INCDIR_POLAR = -I$(POLARSSLCOMPAT_PATH) -I$(POLARSSL_PATH)/include
+LDFLAGS_POLAR = -L$(POLARSSL_PATH)/lib -lmbedtls
+CFLAGS_POLAR = $(CFLAGS) $(INCDIR_POLAR)
+#
+
all: $(PROG)
$(PROG): $(SOURCES)
- $(CC) -o $(PROG) $(SOURCES) \
- -DNS_ENABLE_SSL -DSSL_WRAPPER_USE_AS_LIBRARY -lssl $(CFLAGS)
+ $(CC) -o $(PROG) $(SOURCES) $(LDFLAGS) $(CFLAGS)
+
+polarssl: $(SOURCES_POLAR)
+ $(CC) -o $(PROG) $(SOURCES_POLAR) $(LDFLAGS_POLAR) $(CFLAGS_POLAR)
clean:
rm -rf $(PROG) *.exe *.dSYM *.obj *.exp .*o *.lib