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