diff options
Diffstat (limited to '3rdparty/mongoose/examples/web_server/Makefile')
-rw-r--r-- | 3rdparty/mongoose/examples/web_server/Makefile | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/3rdparty/mongoose/examples/web_server/Makefile b/3rdparty/mongoose/examples/web_server/Makefile index 888f2148d81..ee9bc1b0476 100644 --- a/3rdparty/mongoose/examples/web_server/Makefile +++ b/3rdparty/mongoose/examples/web_server/Makefile @@ -2,11 +2,27 @@ # All rights reserved PROG = web_server -CFLAGS = -W -Wall -I../.. -pthread -g -O0 $(CFLAGS_EXTRA) +CFLAGS = -W -Wall -I../.. -pthread -g -O0 -DMONGOOSE_ENABLE_THREADS $(CFLAGS_EXTRA) SOURCES = $(PROG).c ../../mongoose.c +OPENSSL_FLAGS = -DNS_ENABLE_SSL -lssl + +# 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) -DNS_ENABLE_SSL +# $(PROG): $(SOURCES) $(CC) -o $(PROG) $(SOURCES) $(CFLAGS) +openssl: + $(CC) -o $(PROG) $(SOURCES) $(CFLAGS) $(OPENSSL_FLAGS) + +polarssl: + $(CC) -o $(PROG) $(SOURCES_POLAR) $(LDFLAGS_POLAR) $(CFLAGS_POLAR) + clean: rm -rf $(PROG) *.exe *.dSYM *.obj *.exp .*o *.lib |