3 lib_LTLIBRARIES=libwebsockets.la
4 include_HEADERS=libwebsockets.h
5 dist_libwebsockets_la_SOURCES=libwebsockets.c \
11 private-libwebsockets.h
15 dist_libwebsockets_la_SOURCES+= extension.c \
16 extension-deflate-stream.c extension-deflate-stream.h \
17 extension-deflate-frame.c extension-deflate-frame.h
22 dist_libwebsockets_la_SOURCES+= daemonize.c
27 dist_libwebsockets_la_SOURCES+= client.c \
34 dist_libwebsockets_la_SOURCES+= server.c \
38 if USE_BUILTIN_GETIFADDRS
39 dist_libwebsockets_la_SOURCES += getifaddrs.c
44 dist_libwebsockets_la_SOURCES += sha-1.c
47 libwebsockets_la_CFLAGS=-Wall -std=gnu99 -pedantic
48 libwebsockets_la_LDFLAGS=
50 # uncomment below and use cat ./lib/.libs/*.su | sort -k2g | tac
51 # to get a worst-first list of static stack usage if you have gcc 4.6+
52 #libwebsockets_la_CFLAGS+= -fstack-usage
55 libwebsockets_la_LDFLAGS+= -lcyassl
59 libwebsockets_la_CFLAGS+= -O4
61 libwebsockets_la_CFLAGS+= -O0 -g
65 libwebsockets_la_CFLAGS+= -w -I../win32port/win32helpers -I ../win32port/zlib/
66 libwebsockets_la_LDFLAGS+= -lm -luser32 -ladvapi32 -lkernel32 -lgcc
68 libwebsockets_la_CFLAGS+= -rdynamic -fPIC -Werror
69 # notice http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html has rules for how to bump this
70 libwebsockets_la_LDFLAGS+= -version-info 3:0:0
73 libwebsockets_la_CFLAGS+= -c \
74 -DINSTALL_DATADIR=\"@datadir@\" -DLWS_OPENSSL_CLIENT_CERTS=\"@clientcertdir@\"
77 libwebsockets_la_LDFLAGS+= -lz
81 ../scripts/kernel-doc -html \
84 > ../libwebsockets-api-doc.html
85 ../scripts/kernel-doc -text \
88 > ../libwebsockets-api-doc.txt