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