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=
51 libwebsockets_la_CFLAGS+= -O4
53 libwebsockets_la_CFLAGS+= -g
57 libwebsockets_la_CFLAGS+= -w -I../win32port/win32helpers -I ../win32port/zlib/
58 libwebsockets_la_LDFLAGS+= -lm -luser32 -ladvapi32 -lkernel32 -lgcc
60 libwebsockets_la_CFLAGS+= -rdynamic -fPIC -Werror
61 # notice http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html has rules for how to bump this
62 libwebsockets_la_LDFLAGS+= -version-info 2:0:0
65 libwebsockets_la_CFLAGS+= -c \
66 -DINSTALL_DATADIR=\"@datadir@\" -DLWS_OPENSSL_CLIENT_CERTS=\"@clientcertdir@\"
69 libwebsockets_la_LDFLAGS+= -lz
73 ../scripts/kernel-doc -html \
76 > ../libwebsockets-api-doc.html