deprecate x google mux
[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                                 libwebsockets.h \
7                                 base64-decode.c \
8                                 output.c \
9                                 extension.c \
10                                 extension-deflate-stream.c extension-deflate-stream.h \
11                                 extension-deflate-frame.c extension-deflate-frame.h\
12                                 private-libwebsockets.h
13
14 if NO_DAEMONIZE
15 else
16 dist_libwebsockets_la_SOURCES+= daemonize.c
17 endif
18
19 if NO_CLIENT
20 else
21 dist_libwebsockets_la_SOURCES+= client.c \
22                                 client-parser.c \
23                                 client-handshake.c
24 endif
25
26 if USE_BUILTIN_GETIFADDRS
27 dist_libwebsockets_la_SOURCES += getifaddrs.c
28 endif
29
30 if LIBCRYPTO
31 else
32 dist_libwebsockets_la_SOURCES += md5.c sha-1.c
33 endif
34
35 libwebsockets_la_CFLAGS=-Wall -std=gnu99 -pedantic -g
36 libwebsockets_la_LDFLAGS=
37
38 if MINGW
39 libwebsockets_la_CFLAGS+= -w -I../win32port/win32helpers -I ../win32port/zlib/
40 libwebsockets_la_LDFLAGS+= -lm -luser32 -ladvapi32 -lkernel32 -lgcc
41 else
42 libwebsockets_la_CFLAGS+= -rdynamic -fPIC -Werror
43 libwebsockets_la_LDFLAGS+=  -version-info 1:0
44 endif
45
46 libwebsockets_la_CFLAGS+= -c \
47         -DINSTALL_DATADIR=\"@datadir@\" -DLWS_OPENSSL_CLIENT_CERTS=\"@clientcertdir@\"
48 libwebsockets_la_LDFLAGS+= -lz
49
50 all-local:
51          ../scripts/kernel-doc -html \
52                 libwebsockets.c \
53                 parsers.c \
54                 client-handshake.c \
55                 libwebsockets.h \
56                         > ../libwebsockets-api-doc.html
57