Include files required to rebuild the HTTP web pages in distribution.
[fw/openocd] / src / server / Makefile.am
1 AM_CPPFLAGS = \
2         -I$(top_srcdir)/src/helper \
3         -I$(top_srcdir)/src/target \
4         -I$(top_srcdir)/src/flash \
5         -I$(top_srcdir)/src/jtag  \
6         -DPKGLIBDIR=\"$(pkglibdir)\"
7
8 METASOURCES = AUTO
9 noinst_LTLIBRARIES = libserver.la
10 noinst_HEADERS = server.h telnet_server.h gdb_server.h
11 libserver_la_SOURCES = server.c telnet_server.c gdb_server.c
12
13 if HTTPD
14 libserver_la_SOURCES += httpd.c
15 endif
16
17 libserver_la_CFLAGS =
18 if IS_MINGW
19 # FD_* macros are sloppy with their signs on MinGW32 platform
20 libserver_la_CFLAGS += -Wno-sign-compare
21 endif
22
23 # tcl server addons
24 noinst_HEADERS += tcl_server.h
25 libserver_la_SOURCES += tcl_server.c
26
27 if HTTPD
28 nobase_dist_pkglib_DATA = $(wildcard $(srcdir)/httpd/*.tcl $(srcdir)/httpd/*.css $(srcdir)/httpd/menu_cuts/*.png)
29 endif
30
31 EXTRA_DIST = \
32         httpd/readme.txt \
33         httpd/menu.xml \
34         httpd/menu.xsl \
35         httpd/build.sh \
36         httpd/html2tcl.sh \
37         httpd/Stylizer.java \
38         httpd/Stylizer.class
39
40 MAINTAINERCLEANFILES = Makefile.in