include $(top_srcdir)/config/common.am
-DISTCLEANFILES += config.h libintl.h
+DISTCLEANFILES += config.h libintl.h version.C stamp-version version.C-tmp
MAINTAINERCLEANFILES += $(srcdir)/config.h.in
-SUBDIRS = mathed insets graphics support frontends tex2lyx
+if BUILD_CLIENT_SUBDIR
+CLIENT = client
+endif
-bin_PROGRAMS = lyx
+SUBDIRS = mathed insets graphics support frontends . $(CLIENT) tex2lyx
+
+EXTRA_DIST = config.h.in stamp-h.in version.C.in \
+ Section.h \
+ Section.cpp \
+ Variables.cpp \
+ Variables.h \
+ paper.h \
+ pch.h
+
+LYX_PRE_LIBS = mathed/libmathed.la insets/libinsets.la \
+ frontends/libfrontends.la
-LYX_CONV_LIBS = mathed/libmathed.la insets/libinsets.la \
- frontends/libfrontends.la \
+LYX_POST_LIBS = frontends/controllers/libcontrollers.la \
graphics/libgraphics.la \
support/libsupport.la
-BOOST_LIBS = ../boost/libs/regex/src/libboostregex.la \
- ../boost/libs/signals/src/libboostsignals.la
+BOOST_LIBS = $(BOOST_REGEX) $(BOOST_SIGNALS) $(BOOST_FILESYSTEM) $(BOOST_IOSTREAMS)
+
+OTHERLIBS = $(BOOST_LIBS) $(LIBICONV) $(INTLLIBS) $(AIKSAURUS_LIBS) @LIBS@ $(SOCKET_LIBS)
+
+bin_PROGRAMS = lyx
+noinst_PROGRAMS = $(FRONTENDS_PROGS)
+EXTRA_PROGRAMS = lyx-qt4
-lyx_LDADD = $(LYX_CONV_LIBS) $(BOOST_LIBS) $(INTLLIBS) \
- $(PSPELL_LIBS) $(AIKSAURUS_LIBS) @LIBS@
+lyx_qt4_LDADD = $(lyx_OBJECTS) $(LYX_PRE_LIBS) \
+ frontends/qt4/libqt4.la $(LYX_POST_LIBS) $(OTHERLIBS)
+lyx_qt4_SOURCES = main.cpp
+
+lyx$(EXEEXT): $(FRONTENDS_PROGS)
+ rm -f $@
+ $(LN_S) $< $@
#lyx_LDFLAGS=-Wl,-O1
-EXTRA_DIST = config.h.in stamp-h.in cheaders version.C.in \
- Sectioning.h \
- Sectioning.C \
- Variables.C \
- Variables.h \
- tracer.C \
- tracer.h
+BUILT_SOURCES = $(PCH_FILE) version.C
+
+AM_CPPFLAGS += $(PCH_FLAGS) $(BOOST_INCLUDES)
-INCLUDES = $(BOOST_INCLUDES) $(PSPELL_INCLUDES)
+if USE_ASPELL
+ASPELL = ASpell.cpp ASpell_local.h
+endif
+if USE_PSPELL
+PSPELL = PSpell.cpp PSpell.h
+endif
+if USE_ISPELL
+ISPELL = ISpell.cpp ISpell.h
+endif
-localedir = $(datadir)/locale
-BUILT_SOURCES = version.C
lyx_SOURCES = \
- BoostFormat.h \
- BufferView.C \
+ Bidi.cpp \
+ Bidi.h \
+ BufferView.cpp \
BufferView.h \
- BufferView_pimpl.C \
- BufferView_pimpl.h \
- Bullet.C \
+ Bullet.cpp \
Bullet.h \
- Chktex.C \
+ BranchList.cpp \
+ BranchList.h \
+ Chktex.cpp \
Chktex.h \
- CutAndPaste.C \
+ color.cpp \
+ color.h \
+ ConverterCache.cpp \
+ ConverterCache.h \
+ CutAndPaste.cpp \
CutAndPaste.h \
- DepTable.C \
+ DepTable.cpp \
DepTable.h \
- FloatList.C \
+ FloatList.cpp \
FloatList.h \
- Floating.C \
+ Floating.cpp \
Floating.h \
- FuncStatus.C \
+ FontIterator.cpp \
+ FontIterator.h \
+ FuncStatus.cpp \
FuncStatus.h \
- InsetList.C \
+ InsetList.cpp \
InsetList.h \
- LColor.C \
+ LColor.cpp \
LColor.h \
- LString.h \
- LaTeX.C \
+ LaTeX.cpp \
LaTeX.h \
- LaTeXFeatures.C \
+ LaTeXFeatures.cpp \
LaTeXFeatures.h \
- Lsstream.h \
- LyXAction.C \
+ LyXAction.cpp \
LyXAction.h \
- MenuBackend.C \
+ MenuBackend.cpp \
MenuBackend.h \
- paragraph_funcs.C \
- paragraph_funcs.h \
- ParagraphList.C \
ParagraphList.h \
- ParagraphParameters.C \
+ ParagraphList_fwd.h \
+ ParagraphParameters.cpp \
ParagraphParameters.h \
- ParameterStruct.h \
+ PrinterParams.cpp \
PrinterParams.h \
- ShareContainer.h \
- Spacing.C \
+ RowList_fwd.h \
+ Spacing.cpp \
Spacing.h \
- TextCache.C \
- TextCache.h \
- Thesaurus.C \
+ Thesaurus.cpp \
Thesaurus.h \
- ToolbarDefaults.C \
- ToolbarDefaults.h \
+ ToolbarBackend.cpp \
+ ToolbarBackend.h \
+ UpdateFlags.h \
WordLangTuple.h \
- author.C \
- author.h \
- boost.C \
- boost-inst.C \
- box.h \
- box.C \
- broken_headers.h \
- buffer.C \
- buffer.h \
- bufferlist.C \
- bufferlist.h \
- bufferparams.C \
- bufferparams.h \
- bufferview_funcs.C \
+ Author.cpp \
+ Author.h \
+ boost.cpp \
+ Box.h \
+ Box.cpp \
+ Buffer.cpp \
+ Buffer.h \
+ buffer_funcs.cpp \
+ buffer_funcs.h \
+ BufferList.cpp \
+ BufferList.h \
+ BufferParams.cpp \
+ BufferParams.h \
+ bufferview_funcs.cpp \
bufferview_funcs.h \
- changes.C \
- changes.h \
- chset.C \
- chset.h \
- commandtags.h \
+ Changes.cpp \
+ Changes.h \
config.h.in \
- converter.C \
- converter.h \
- counters.C \
- counters.h \
- debug.C \
+ Converter.cpp \
+ Converter.h \
+ Counters.cpp \
+ Counters.h \
+ CoordCache.cpp \
+ CoordCache.h \
+ LCursor.cpp \
+ LCursor.h \
+ CursorSlice.cpp \
+ CursorSlice.h \
+ debug.cpp \
debug.h \
- encoding.C \
- encoding.h \
- exporter.C \
- exporter.h \
- gettext.C \
+ Dimension.cpp \
+ Dimension.h \
+ DocIterator.cpp \
+ DocIterator.h \
+ DispatchResult.h \
+ Encoding.cpp \
+ Encoding.h \
+ ErrorList.cpp \
+ ErrorList.h \
+ Exporter.cpp \
+ Exporter.h \
+ gettext.cpp \
gettext.h \
factory.h \
- factory.C \
- funcrequest.h \
- funcrequest.C \
- importer.C \
- importer.h \
- intl.C \
- intl.h \
- iterators.C \
- iterators.h \
- kbmap.C \
- kbmap.h \
- kbsequence.C \
- kbsequence.h \
- language.C \
- language.h \
- lastfiles.C \
- lastfiles.h \
+ factory.cpp \
+ Format.cpp \
+ Format.h \
+ FuncRequest.h \
+ FuncRequest.cpp \
+ Graph.cpp \
+ Graph.h \
+ Importer.cpp \
+ Importer.h \
+ Intl.cpp \
+ Intl.h \
+ InsetIterator.cpp \
+ InsetIterator.h \
+ kb_keymap.cpp \
+ kb_keymap.h \
+ kb_sequence.cpp \
+ kb_sequence.h \
+ Language.cpp \
+ Language.h \
+ Session.cpp \
+ Session.h \
layout.h \
- lengthcommon.C \
+ lengthcommon.cpp \
lengthcommon.h \
- lyx_cb.C \
+ Lexer.cpp \
+ Lexer.h \
+ lfuns.h \
+ lyx_cb.cpp \
lyx_cb.h \
- lyx_main.C \
- lyx_main.h \
- lyx_sty.C \
+ LyX.cpp \
+ LyX.h \
+ lyx_sty.cpp \
lyx_sty.h \
- lyxcursor.C \
- lyxcursor.h \
- lyxfont.C \
- lyxfont.h \
- lyxfind.C \
+ LyXFont.cpp \
+ LyXFont.h \
+ lyxfind.cpp \
lyxfind.h \
- lyxfunc.C \
- lyxfunc.h \
- lyxgluelength.C \
- lyxgluelength.h \
- lyxlayout.C \
- lyxlayout.h \
+ LyXFunc.cpp \
+ LyXFunc.h \
+ LyXGlueLength.cpp \
+ LyXGlueLength.h \
+ LyXLayout.cpp \
+ LyXLayout.h \
lyxlayout_ptr_fwd.h \
- lyxlength.C \
- lyxlength.h \
- lyxlex.C \
- lyxlex.h \
- lyxlex_pimpl.C \
- lyxlex_pimpl.h \
- lyxrc.C \
- lyxrc.h \
- lyxrow.C \
- lyxrow.h \
- lyxserver.C \
- lyxserver.h \
- lyxtext.h \
- lyxtextclass.C \
- lyxtextclass.h \
- lyxtextclasslist.C \
- lyxtextclasslist.h \
- lyxvc.C \
- lyxvc.h \
- main.C \
- paragraph.C \
- paragraph.h \
- paragraph_pimpl.C \
- paragraph_pimpl.h \
+ LyXLength.cpp \
+ LyXLength.h \
+ LyXRC.cpp \
+ LyXRC.h \
+ Row.cpp \
+ Row.h \
+ LyXServer.cpp \
+ LyXServer.h \
+ LyXServerSocket.cpp \
+ LyXServerSocket.h \
+ LyXText.h \
+ LyXTextClass.cpp \
+ LyXTextClass.h \
+ LyXTextClassList.cpp \
+ LyXTextClassList.h \
+ LyXVC.cpp \
+ LyXVC.h \
+ Messages.cpp \
+ Messages.h \
+ MetricsInfo.cpp \
+ MetricsInfo.h \
+ Mover.cpp \
+ Mover.h \
+ output.cpp \
+ output.h \
+ OutputParams.cpp \
+ OutputParams.h \
+ output_docbook.cpp \
+ output_docbook.h \
+ output_latex.cpp \
+ output_latex.h \
+ output_plaintext.cpp \
+ output_plaintext.h \
+ paper.h \
+ Paragraph.cpp \
+ Paragraph.h \
+ ParagraphMetrics.cpp \
+ ParagraphMetrics.h \
+ paragraph_funcs.cpp \
+ paragraph_funcs.h \
+ ParIterator.cpp \
+ ParIterator.h \
+ $(ASPELL) $(PSPELL) $(ISPELL) SpellBase.cpp \
SpellBase.h \
- ispell.C \
- ispell.h \
- pspell.C \
- pspell.h \
- sgml.C \
+ rowpainter.cpp \
+ rowpainter.h \
+ sgml.cpp \
sgml.h \
- tabular.C \
- tabular.h \
- tabular-old.C \
- tabular_funcs.C \
- tabular_funcs.h \
- tex-accent.C \
+ tex-accent.cpp \
tex-accent.h \
- tex-strings.C \
+ tex-strings.cpp \
tex-strings.h \
- texrow.C \
- texrow.h \
- text.C \
- text2.C \
- text3.C \
- toc.C \
+ TexRow.cpp \
+ TexRow.h \
+ text.cpp \
+ text2.cpp \
+ text3.cpp \
+ TextMetrics.cpp \
+ TextMetrics.h \
+ TocBackend.cpp \
+ TocBackend.h \
+ toc.cpp \
toc.h \
- trans.C \
- trans.h \
- trans_decl.h \
- trans_mgr.C \
- trans_mgr.h \
- undo.C \
- undo.h \
- undo_funcs.C \
- undo_funcs.h \
- vc-backend.C \
- vc-backend.h \
+ Trans.cpp \
+ Trans.h \
+ KmodInfo.h \
+ TransState.cpp \
+ TransState.h \
+ Undo.cpp \
+ Undo.h \
+ VCBackend.cpp \
+ VCBackend.h \
version.C \
version.h \
- vspace.C \
- vspace.h
-
-lyx_main.o: lyx_main.C lyx_main.h config.h version.h \
- lyxrc.h support/path.h support/filetools.h \
- bufferlist.h debug.h support/FileInfo.h lastfiles.h intl.h \
- lyxserver.h layout.h gettext.h kbmap.h commandtags.h language.h
- $(CXXCOMPILE) -DLYX_DIR=\"$(pkgdatadir)\" \
- -DTOP_SRCDIR=\"$(top_srcdir)\" -c $(top_srcdir)/src/lyx_main.C
+ VSpace.cpp \
+ VSpace.h
-main.o: main.C config.h lyx_main.h gettext.h LString.h support/filetools.h support/os.h
- $(CXXCOMPILE) -DLOCALEDIR=\"$(localedir)\" -c $(top_srcdir)/src/main.C
+version.C: stamp-version
+ @:
-dist-hook:
- cd $(distdir) ; rm -rf `find cheaders -name \*CVS\*`
+stamp-version: version.C-tmp
+ if cmp -s $< version.C ; then \
+ : ;\
+ else \
+ rm -f version.C ;\
+ cp $< version.C ;\
+ fi
+ echo timestamp > $@