-AUTOMAKE_OPTIONS = foreign
-SUBDIRS = mathed insets graphics support frontends
-DISTCLEANFILES= *.orig *.rej *~ *.bak core libintl.h config.h
-MAINTAINERCLEANFILES = $(srcdir)/Makefile.in $(srcdir)/config.h.in
-bin_PROGRAMS = lyx
-## libfrontends is given twice on the link line because it needs stuff
-## from FRONTEND_GUILIB and inversely. If you do not like it, feel
-## free to provide another solution... Maybe signals would solve that
-## magically, but I do not understand them much (JMarc)
-lyx_DEPENDENCIES = mathed/libmathed.la insets/libinsets.la \
+include $(top_srcdir)/config/common.am
+
+DISTCLEANFILES += config.h libintl.h version.C stamp-version version.C-tmp
+
+MAINTAINERCLEANFILES += $(srcdir)/config.h.in
+
+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 \
+ 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_POST_LIBS = frontends/controllers/libcontrollers.la \
graphics/libgraphics.la \
- frontends/libfrontends.la @FRONTEND_GUILIB@ \
- frontends/libfrontends.la support/libsupport.la @INCLUDED_SIGC@
-lyx_LDADD = $(lyx_DEPENDENCIES) @INTLLIBS@ $(LYX_LIBS) $(SIGC_LIBS) \
- $(PSPELL_LIBS) @FRONTEND_LDFLAGS@ @FRONTEND_LIBS@
+ support/libsupport.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_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
-ETAGS_ARGS = --lang=c++
-INCLUDES = $(SIGC_CFLAGS) $(PSPELL_INCLUDES) @FRONTEND_INCLUDES@
-localedir = $(datadir)/locale
+
+BUILT_SOURCES = $(PCH_FILE) version.C
+
+AM_CPPFLAGS += $(PCH_FLAGS) $(BOOST_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
+
+
+
lyx_SOURCES = \
- BackStack.h \
- BufferView.C \
+ Bidi.cpp \
+ Bidi.h \
+ BufferView.cpp \
BufferView.h \
- BufferView2.C \
- BufferView_pimpl.C \
- BufferView_pimpl.h \
- Bullet.C \
+ Bullet.cpp \
Bullet.h \
- Chktex.C \
+ BranchList.cpp \
+ BranchList.h \
+ Chktex.cpp \
Chktex.h \
- ColorHandler.C \
- ColorHandler.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.cpp \
Floating.h \
- FontInfo.C \
- FontInfo.h \
- FontLoader.C \
- FontLoader.h \
- ImportLaTeX.C \
- ImportLaTeX.h \
- ImportNoweb.C \
- ImportNoweb.h \
- LColor.C \
+ FontIterator.cpp \
+ FontIterator.h \
+ FuncStatus.cpp \
+ FuncStatus.h \
+ InsetList.cpp \
+ InsetList.h \
+ LColor.cpp \
LColor.h \
- LString.h \
- LaTeX.C \
+ LaTeX.cpp \
LaTeX.h \
- LaTeXFeatures.C \
+ LaTeXFeatures.cpp \
LaTeXFeatures.h \
- LaTeXLog.C \
- Literate.C \
- Literate.h \
- LyXAction.C \
+ LyXAction.cpp \
LyXAction.h \
- LyXSendto.C \
- LyXView.C \
- LyXView.h \
- Makefile.in \
- MenuBackend.C \
+ MenuBackend.cpp \
MenuBackend.h \
- Painter.C \
- Painter.h \
- PainterBase.C \
- PainterBase.h \
- PaperLayout.C \
- ParagraphExtra.C \
+ ParagraphList.h \
+ ParagraphList_fwd.h \
+ ParagraphParameters.cpp \
+ ParagraphParameters.h \
+ PrinterParams.cpp \
PrinterParams.h \
- Sectioning.h \
- Sectioning.C \
- Spacing.C \
+ RowList_fwd.h \
+ Spacing.cpp \
Spacing.h \
- TableLayout.C \
- TextCache.C \
- TextCache.h \
- Timeout.C \
- Timeout.h \
- ToolbarDefaults.C \
- ToolbarDefaults.h \
- UpdateInset.C \
- UpdateInset.h \
- Variables.C \
- Variables.h \
- WorkArea.C \
- WorkArea.h \
- bibforms.h \
- bmtable.c \
- bmtable.h \
- broken_headers.h \
- buffer.C \
- buffer.h \
- bufferlist.C \
- bufferlist.h \
- bufferparams.C \
- bufferparams.h \
- bufferview_funcs.C \
+ Thesaurus.cpp \
+ Thesaurus.h \
+ ToolbarBackend.cpp \
+ ToolbarBackend.h \
+ UpdateFlags.h \
+ WordLangTuple.h \
+ 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 \
- bullet_forms.C \
- bullet_forms.h \
- bullet_forms_cb.C \
- chset.C \
- chset.h \
- combox.C \
- combox.h \
- commandtags.h \
+ Changes.cpp \
+ Changes.h \
config.h.in \
- counters.C \
- counters.h \
- credits.C \
- credits.h \
- credits_form.C \
- credits_form.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 \
- ext_l10n.h \
- figure.h \
- filedlg.C \
- filedlg.h \
- font.C \
- font.h \
- form1.C \
- form1.h \
+ 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 \
- include_form.h \
- intl.C \
- intl.h \
- kbmap.C \
- kbmap.h \
- kbsequence.C \
- kbsequence.h \
- language.C \
- language.h \
- lastfiles.C \
- lastfiles.h \
- layout.C \
+ factory.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 \
- layout_forms.C \
- layout_forms.h \
- log_form.C \
- log_form.h \
- lyx.C \
- lyx.h \
- lyx_cb.C \
+ lengthcommon.cpp \
+ lengthcommon.h \
+ Lexer.cpp \
+ Lexer.h \
+ lfuns.h \
+ lyx_cb.cpp \
lyx_cb.h \
- lyx_gui.C \
- lyx_gui.h \
- lyx_gui_misc.C \
- lyx_gui_misc.h \
- lyx_main.C \
- lyx_main.h \
- lyx_sendfax.C \
- lyx_sendfax.h \
- lyx_sendfax_main.C \
- lyx_sty.C \
+ LyX.cpp \
+ LyX.h \
+ lyx_sty.cpp \
lyx_sty.h \
- lyxcursor.C \
- lyxcursor.h \
- lyxfont.C \
- lyxfont.h \
- lyxfr0.C \
- lyxfr0.h \
- lyxfr1.C \
- lyxfr1.h \
- lyxfunc.C \
- lyxfunc.h \
- lyxlex.C \
- lyxlex.h \
- lyxlex_pimpl.C \
- lyxlex_pimpl.h \
- lyxlookup.C \
- lyxlookup.h \
- lyxparagraph.h \
- lyxrc.C \
- lyxrc.h \
- lyxrow.C \
- lyxrow.h \
- lyxscreen.h \
- lyxserver.C \
- lyxserver.h \
- lyxtext.h \
- lyxvc.C \
- lyxvc.h \
- main.C \
- menus.C \
- menus.h \
- minibuffer.C \
- minibuffer.h \
- nt_defines.h \
- os2_defines.h \
- os2_errortable.h \
- paragraph.C \
- print_form.C \
- print_form.h \
- screen.C \
- sp_form.C \
- sp_form.h \
- spellchecker.C \
- spellchecker.h \
- stl_string_fwd.h \
- table.C \
- table.h \
- tabular.C \
- tabular.h \
- tex-accent.C \
+ LyXFont.cpp \
+ LyXFont.h \
+ lyxfind.cpp \
+ lyxfind.h \
+ LyXFunc.cpp \
+ LyXFunc.h \
+ LyXGlueLength.cpp \
+ LyXGlueLength.h \
+ LyXLayout.cpp \
+ LyXLayout.h \
+ lyxlayout_ptr_fwd.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 \
+ rowpainter.cpp \
+ rowpainter.h \
+ sgml.cpp \
+ sgml.h \
+ tex-accent.cpp \
tex-accent.h \
- tex-defs.h \
- tex-strings.C \
+ tex-strings.cpp \
tex-strings.h \
- texrow.C \
- texrow.h \
- text.C \
- text2.C \
- tracer.C \
- tracer.h \
- trans.C \
- trans.h \
- trans_decl.h \
- trans_mgr.C \
- trans_mgr.h \
- undo.C \
- undo.h \
- vc-backend.C \
- vc-backend.h \
+ TexRow.cpp \
+ TexRow.h \
+ text.cpp \
+ text2.cpp \
+ text3.cpp \
+ TextMetrics.cpp \
+ TextMetrics.h \
+ TocBackend.cpp \
+ TocBackend.h \
+ toc.cpp \
+ toc.h \
+ Trans.cpp \
+ Trans.h \
+ KmodInfo.h \
+ TransState.cpp \
+ TransState.h \
+ Undo.cpp \
+ Undo.h \
+ VCBackend.cpp \
+ VCBackend.h \
+ version.C \
version.h \
- vms_defines.h \
- vspace.C \
- vspace.h
-
-lyx_main.o: lyx_main.C lyx_main.h config.h version.h lyx_gui.h \
- lyx_gui_misc.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
- $(CXXCOMPILE) -DLYX_DIR=\"$(pkgdatadir)\" \
- -DTOP_SRCDIR=\"$(top_srcdir)\" -c $(top_srcdir)/src/lyx_main.C
-
-main.o: main.C config.h lyx_main.h gettext.h LString.h support/filetools.h
- $(CXXCOMPILE) -DLOCALEDIR=\"$(localedir)\" -c $(top_srcdir)/src/main.C
-
-dist-hook:
- cd $(distdir) ; rm -rf `find cheaders -name \*CVS\*`
+ VSpace.cpp \
+ VSpace.h
+
+version.C: stamp-version
+ @:
+
+stamp-version: version.C-tmp
+ if cmp -s $< version.C ; then \
+ : ;\
+ else \
+ rm -f version.C ;\
+ cp $< version.C ;\
+ fi
+ echo timestamp > $@