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