Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
a434bab7
Commit
a434bab7
authored
Mar 06, 2015
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #480 from cesanta/polarssl_examples_1
websocket_ssl_proxy sample for polarsll
parents
c7b6a6f0
e9633a8d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
Makefile
examples/websocket_ssl_proxy/Makefile
+15
-3
No files found.
examples/websocket_ssl_proxy/Makefile
View file @
a434bab7
...
...
@@ -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
-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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment