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