
You can get a worst-first list of stack allocators like this $ cat ./lib/.libs/*.su | sort -k2g | tac On x86_64, currently the ones above 100 bytes are server.c:126:5:lws_server_socket_service 4208 static client.c:42:5:lws_client_socket_service 1584 static libwebsockets.c:1539:1:libwebsocket_create_context 1136 static libwebsockets.c:783:1:libwebsocket_service_fd 656 static client-handshake.c:3:22:__libwebsocket_client_connect_2 592 static libwebsockets.c:2149:6:_lws_log 496 static server-handshake.c:33:1:handshake_0405 464 static libwebsockets.c:2102:13:lwsl_emit_stderr 352 static client.c:351:1:lws_client_interpret_server_handshake 240 static daemonize.c:93:1:lws_daemonize 224 static libwebsockets.c:434:1:libwebsockets_get_peer_addresses 208 static client.c:694:1:libwebsockets_generate_client_handshake 208 static output.c:534:5:libwebsockets_serve_http_file 192 static output.c:51:6:lwsl_hexdump 176 static sha-1.c:316:1:SHA1 160 static libwebsockets.c:157:1:libwebsocket_close_and_free_session 144 static Signed-off-by: Andy Green <andy.green@linaro.org>
85 lines
1.9 KiB
Makefile
85 lines
1.9 KiB
Makefile
@applyhash@
|
|
|
|
lib_LTLIBRARIES=libwebsockets.la
|
|
include_HEADERS=libwebsockets.h
|
|
dist_libwebsockets_la_SOURCES=libwebsockets.c \
|
|
parsers.c \
|
|
handshake.c \
|
|
libwebsockets.h \
|
|
base64-decode.c \
|
|
output.c \
|
|
private-libwebsockets.h
|
|
|
|
if NO_EXTENSIONS
|
|
else
|
|
dist_libwebsockets_la_SOURCES+= extension.c \
|
|
extension-deflate-stream.c extension-deflate-stream.h \
|
|
extension-deflate-frame.c extension-deflate-frame.h
|
|
endif
|
|
|
|
if NO_DAEMONIZE
|
|
else
|
|
dist_libwebsockets_la_SOURCES+= daemonize.c
|
|
endif
|
|
|
|
if NO_CLIENT
|
|
else
|
|
dist_libwebsockets_la_SOURCES+= client.c \
|
|
client-parser.c \
|
|
client-handshake.c
|
|
endif
|
|
|
|
if NO_SERVER
|
|
else
|
|
dist_libwebsockets_la_SOURCES+= server.c \
|
|
server-handshake.c
|
|
endif
|
|
|
|
if USE_BUILTIN_GETIFADDRS
|
|
dist_libwebsockets_la_SOURCES += getifaddrs.c
|
|
endif
|
|
|
|
if LIBCRYPTO
|
|
else
|
|
dist_libwebsockets_la_SOURCES += sha-1.c
|
|
endif
|
|
|
|
libwebsockets_la_CFLAGS=-Wall -std=gnu99 -pedantic -fstack-usage
|
|
libwebsockets_la_LDFLAGS=
|
|
|
|
if USE_CYASSL
|
|
libwebsockets_la_LDFLAGS+= -lcyassl
|
|
endif
|
|
|
|
if DISABLE_DEBUG
|
|
libwebsockets_la_CFLAGS+= -O4
|
|
else
|
|
libwebsockets_la_CFLAGS+= -g
|
|
endif
|
|
|
|
if MINGW
|
|
libwebsockets_la_CFLAGS+= -w -I../win32port/win32helpers -I ../win32port/zlib/
|
|
libwebsockets_la_LDFLAGS+= -lm -luser32 -ladvapi32 -lkernel32 -lgcc
|
|
else
|
|
libwebsockets_la_CFLAGS+= -rdynamic -fPIC -Werror
|
|
# notice http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html has rules for how to bump this
|
|
libwebsockets_la_LDFLAGS+= -version-info 2:0:0
|
|
endif
|
|
|
|
libwebsockets_la_CFLAGS+= -c \
|
|
-DINSTALL_DATADIR=\"@datadir@\" -DLWS_OPENSSL_CLIENT_CERTS=\"@clientcertdir@\"
|
|
if NO_EXTENSIONS
|
|
else
|
|
libwebsockets_la_LDFLAGS+= -lz
|
|
endif
|
|
|
|
all-local:
|
|
../scripts/kernel-doc -html \
|
|
*.c \
|
|
libwebsockets.h \
|
|
> ../libwebsockets-api-doc.html
|
|
../scripts/kernel-doc -text \
|
|
*.c \
|
|
libwebsockets.h \
|
|
> ../libwebsockets-api-doc.txt
|
|
|