Fix make maintainer-clean for out-of-tree builds.
[openocd.git] / 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         -DPKGDATADIR=\"$(pkgdatadir)\"
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_pkgdata_DATA = \
29         $(wildcard \
30                 $(srcdir)/httpd/*.tcl \
31                 $(srcdir)/httpd/*.css \
32                 $(srcdir)/httpd/menu_cuts/*.png \
33         )
34 endif
35
36 EXTRA_DIST = \
37         httpd/readme.txt \
38         httpd/menu.xml \
39         httpd/menu.xsl \
40         httpd/build.sh \
41         httpd/html2tcl.sh \
42         httpd/Stylizer.java \
43         httpd/Stylizer.class
44
45 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in