]> git.lyx.org Git - lyx.git/blobdiff - src/Makefile.am
merge LyXTabular.{cpp,h} and insets/InsetTabular.{cpp,h}. More reorganization necessa...
[lyx.git] / src / Makefile.am
index cecc43e101bbe36d785c411efb91edb23cfdfef7..9aa8c088c62d3bab048283e70403295b4673d793 100644 (file)
 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
+if BUILD_CLIENT_SUBDIR
+CLIENT = client
+endif
 
-LIBS += @LIBS@
+SUBDIRS = mathed insets graphics support frontends . $(CLIENT) tex2lyx
 
-bin_PROGRAMS = lyx
+EXTRA_DIST = config.h.in stamp-h.in version.C.in \
+       Section.h \
+       Section.cpp \
+       Variables.cpp \
+       Variables.h \
+       paper.h \
+       pch.h
 
-LYX_CONV_LIBS = mathed/libmathed.la insets/libinsets.la \
-       frontends/libfrontends.la \
+LYX_PRE_LIBS = mathed/libmathed.la insets/libinsets.la \
+       frontends/libfrontends.la
+
+LYX_POST_LIBS = frontends/controllers/libcontrollers.la \
        graphics/libgraphics.la \
        support/libsupport.la
 
-#lyx_DEPENDENCIES = $(LYX_CONV_LIBS) $(INCLUDED_SIGC)
+BOOST_LIBS = $(BOOST_REGEX) $(BOOST_SIGNALS) $(BOOST_FILESYSTEM) $(BOOST_IOSTREAMS)
 
-lyx_LDADD = $(LYX_CONV_LIBS) $(SIGC_LIBS) $(INCLUDED_SIGC) @INTLLIBS@ \
-       $(PSPELL_LIBS) @AIKSAURUS_LIBS@
+OTHERLIBS = $(BOOST_LIBS) $(LIBICONV) $(INTLLIBS) $(AIKSAURUS_LIBS) @LIBS@ $(SOCKET_LIBS)
 
-#  @FRONTEND_LDFLAGS@ @FRONTEND_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 ext_l10n.h version.C.in \
-       Sectioning.h \
-       Sectioning.C \
-       Variables.C \
-       Variables.h \
-       counters.C \
-       counters.h
+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
+
+
 
-INCLUDES = $(SIGC_CFLAGS) $(BOOST_INCLUDES) $(PSPELL_INCLUDES)
-localedir = $(datadir)/locale
-BUILT_SOURCES = version.C
 lyx_SOURCES = \
-       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.C \
+       Floating.cpp \
        Floating.h \
-       FontInfo.C \
-       FontInfo.h \
-       FontLoader.C \
-       FontLoader.h \
-       FuncStatus.C \
+       FontIterator.cpp \
+       FontIterator.h \
+       FuncStatus.cpp \
        FuncStatus.h \
-       LColor.C \
+       InsetList.cpp \
+       InsetList.h \
+       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 \
-       LyXView.C \
-       LyXView.h \
-       MenuBackend.C \
+       MenuBackend.cpp \
        MenuBackend.h \
-       Painter.C \
-       Painter.h \
-       PainterBase.C \
-       PainterBase.h \
-       ParagraphParameters.C \
+       ParagraphList.h \
+       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 \
-       WorkArea.C \
-       WorkArea.h \
-       XFormsView.C \
-       XFormsView.h \
-       box.h \
-       box.C \
-       broken_headers.h \
-       buffer.C \
-       buffer.h \
-       bufferlist.C \
-       bufferlist.h \
-       bufferparams.C \
-       bufferparams.h \
-       bufferview_funcs.C \
+       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 \
-       chset.C \
-       chset.h \
-       commandtags.h \
+       Changes.cpp \
+       Changes.h \
        config.h.in \
-       converter.C \
-       converter.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 \
-       font.C \
-       font.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 \
-       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.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_gui.C \
-       lyx_gui.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 \
-       lyxlength.C \
-       lyxlength.h \
-       lyxlex.C \
-       lyxlex.h \
-       lyxlex_pimpl.C \
-       lyxlex_pimpl.h \
-       lyxlookup.C \
-       lyxlookup.h \
-       lyxrc.C \
-       lyxrc.h \
-       lyxrow.C \
-       lyxrow.h \
-       lyxscreen.h \
-       lyxserver.C \
-       lyxserver.h \
-       lyxtext.h \
-       lyxtextclass.C \
-       lyxtextclass.h \
-       lyxtextclasslist.C \
-       lyxtextclasslist.h \
-       lyxvc.C \
-       lyxvc.h \
-       main.C \
-       minibuffer.C \
-       minibuffer.h \
-       paragraph.C \
-       paragraph.h \
-       paragraph_pimpl.C \
-       paragraph_pimpl.h \
-       screen.C \
-       sp_base.h \
-       sp_spell.C \
-       sp_ispell.h \
-       sp_pspell.h \
-       stl_string_fwd.h \
-       tabular.C \
-       tabular.h \
-       tabular-old.C \
-       tabular_funcs.C \
-       tabular_funcs.h \
-       tex-accent.C \
+       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-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 \
-       undo_funcs.C \
-       undo_funcs.h \
-       undostack.C \
-       undostack.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 \
-       vspace.C \
-       vspace.h
-
-lyx_main.o: lyx_main.C lyx_main.h config.h version.h lyx_gui.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
-
-main.o: main.C config.h lyx_main.h gettext.h LString.h support/filetools.h \
-       support/os.h frontends/GUIRunTime.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 > $@