refactor migrate client stuff to client.c
[profile/ivi/libwebsockets.git] / lib / Makefile.am
1 lib_LTLIBRARIES=libwebsockets.la
2 include_HEADERS=libwebsockets.h
3 dist_libwebsockets_la_SOURCES=libwebsockets.c \
4                                 handshake.c \
5                                 parsers.c \
6                                 client.c \
7                                 client-parser.c \
8                                 libwebsockets.h \
9                                 base64-decode.c \
10                                 client-handshake.c \
11                                 extension.c \
12                                 extension-deflate-stream.c extension-deflate-stream.h \
13                                 extension-deflate-frame.c extension-deflate-frame.h\
14                                 private-libwebsockets.h
15
16 if USE_BUILTIN_GETIFADDRS
17 dist_libwebsockets_la_SOURCES += getifaddrs.c
18 endif
19
20 if EXT_GOOGLE_MUX
21 dist_libwebsockets_la_SOURCES += extension-x-google-mux.c extension-x-google-mux.h
22 endif
23
24 if LIBCRYPTO
25 else
26 dist_libwebsockets_la_SOURCES += md5.c sha-1.c
27 endif
28
29 libwebsockets_la_CFLAGS=-Wall -std=gnu99 -pedantic
30 libwebsockets_la_LDFLAGS=
31
32 if MINGW
33 libwebsockets_la_CFLAGS+= -w -I../win32port/win32helpers -I ../win32port/zlib/
34 libwebsockets_la_LDFLAGS+= -lm -luser32 -ladvapi32 -lkernel32 -lgcc
35 else
36 libwebsockets_la_CFLAGS+= -rdynamic -fPIC -Werror
37 libwebsockets_la_LDFLAGS+=  -version-info 1:0
38 endif
39
40 libwebsockets_la_CFLAGS+= -c \
41         -DINSTALL_DATADIR=\"@datadir@\" -DLWS_OPENSSL_CLIENT_CERTS=\"@clientcertdir@\"
42 libwebsockets_la_LDFLAGS+= -lz
43
44 all-local:
45          ../scripts/kernel-doc -html \
46                 libwebsockets.c \
47                 parsers.c \
48                 client-handshake.c \
49                 libwebsockets.h \
50                         > ../libwebsockets-api-doc.html
51