MAINTAINERCLEANFILES += $(srcdir)/config.h.in
-SUBDIRS = mathed insets graphics support frontends . client tex2lyx
+if BUILD_CLIENT_SUBDIR
+CLIENT = client
+endif
+
+SUBDIRS = mathed insets graphics support frontends . $(CLIENT) tex2lyx
EXTRA_DIST = config.h.in stamp-h.in version.C.in \
Sectioning.h \
graphics/libgraphics.la \
support/libsupport.la
-BOOST_LIBS = $(BOOST_REGEX) $(BOOST_SIGNALS)
+BOOST_LIBS = $(BOOST_REGEX) $(BOOST_SIGNALS) $(BOOST_FILESYSTEM)
OTHERLIBS = $(BOOST_LIBS) $(INTLLIBS) $(AIKSAURUS_LIBS) @LIBS@
BUILT_SOURCES = version.C
-AM_CPPFLAGS = $(PCH_FLAGS) $(BOOST_INCLUDES)
+AM_CPPFLAGS += $(PCH_FLAGS) $(BOOST_INCLUDES)
+
+if USE_ASPELL
+ASPELL = aspell.C aspell_local.h
+endif
+if USE_PSPELL
+PSPELL = pspell.C pspell.h
+endif
+if USE_ISPELL
+ISPELL = ispell.C ispell.h
+endif
+
+
lyx_SOURCES = \
Bidi.C \
ToolbarBackend.C \
ToolbarBackend.h \
WordLangTuple.h \
- aspell.C \
- aspell_local.h \
author.C \
author.h \
boost.C \
paragraph_pimpl.h \
pariterator.C \
pariterator.h \
+ $(ASPELL) $(PSPELL) $(ISPELL) SpellBase.C \
SpellBase.h \
- ispell.C \
- ispell.h \
- pspell.C \
- pspell.h \
rowpainter.C \
rowpainter.h \
sgml.C \