AM_CPPFLAGS = \
-I$(top_srcdir)/src \
- -I$(top_srcdir)/src/helper \
- -I$(top_srcdir)/src/target \
- -I$(top_srcdir)/src/flash \
- -I$(top_srcdir)/src/jtag \
+ -I$(top_builddir)/src \
-DPKGDATADIR=\"$(pkgdatadir)\"
METASOURCES = AUTO
if HTTPD
libserver_la_SOURCES += httpd.c
+else
+libserver_la_SOURCES += httpd_stubs.c
+if !ECOSBOARD
+libserver_la_SOURCES += server_stubs.c
endif
+endif
+noinst_HEADERS += httpd.h
libserver_la_CFLAGS =
if IS_MINGW