-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 \
+ Sectioning.h \
+ Sectioning.C \
+ Variables.C \
+ 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 \
- frontends/support/libfrontendsupport.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.C
+
+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++
-BOOST_INCLUDES = -I$(top_srcdir)/boost
-INCLUDES = $(SIGC_CFLAGS) $(BOOST_INCLUDES) $(PSPELL_INCLUDES) @FRONTEND_INCLUDES@
-localedir = $(datadir)/locale
+
+BUILT_SOURCES = $(PCH_FILE) version.C
+
+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 = \
- BackStack.h \
+ Bidi.C \
+ Bidi.h \
BufferView.C \
BufferView.h \
- BufferView2.C \
- BufferView_pimpl.C \
- BufferView_pimpl.h \
Bullet.C \
Bullet.h \
+ BranchList.C \
+ BranchList.h \
Chktex.C \
Chktex.h \
- ColorHandler.C \
- ColorHandler.h \
+ Color.C \
+ Color.h \
+ ConverterCache.C \
+ ConverterCache.h \
CutAndPaste.C \
CutAndPaste.h \
DepTable.C \
FloatList.h \
Floating.C \
Floating.h \
- FontInfo.C \
- FontInfo.h \
- FontLoader.C \
- FontLoader.h \
+ FontIterator.C \
+ FontIterator.h \
+ FuncStatus.C \
+ FuncStatus.h \
+ InsetList.C \
+ InsetList.h \
LColor.C \
LColor.h \
- LString.h \
LaTeX.C \
LaTeX.h \
LaTeXFeatures.C \
LaTeXFeatures.h \
- LaTeXLog.C \
- Lsstream.h \
LyXAction.C \
LyXAction.h \
- LyXSendto.C \
- LyXView.C \
- LyXView.h \
- Makefile.in \
MenuBackend.C \
MenuBackend.h \
- Painter.C \
- Painter.h \
- PainterBase.C \
- PainterBase.h \
+ ParagraphList.h \
+ ParagraphList_fwd.h \
+ ParagraphParameters.C \
+ ParagraphParameters.h \
+ PrinterParams.C \
PrinterParams.h \
- Sectioning.h \
- Sectioning.C \
+ RowList_fwd.h \
Spacing.C \
Spacing.h \
- 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 \
+ Thesaurus.C \
+ Thesaurus.h \
+ ToolbarBackend.C \
+ ToolbarBackend.h \
+ UpdateFlags.h \
+ WordLangTuple.h \
+ author.C \
+ author.h \
+ boost.C \
+ box.h \
+ box.C \
buffer.C \
buffer.h \
+ buffer_funcs.C \
+ buffer_funcs.h \
bufferlist.C \
bufferlist.h \
bufferparams.C \
bufferparams.h \
bufferview_funcs.C \
bufferview_funcs.h \
+ changes.C \
+ changes.h \
chset.C \
chset.h \
- combox.C \
- combox.h \
- commandtags.h \
config.h.in \
converter.C \
converter.h \
counters.C \
counters.h \
- credits.C \
- credits.h \
- credits_form.C \
- credits_form.h \
+ coordcache.C \
+ coordcache.h \
+ cursor.C \
+ cursor.h \
+ cursor_slice.C \
+ cursor_slice.h \
debug.C \
debug.h \
+ dimension.C \
+ dimension.h \
+ dociterator.C \
+ dociterator.h \
+ dispatchresult.h \
encoding.C \
encoding.h \
+ errorlist.C \
+ errorlist.h \
exporter.C \
exporter.h \
- ext_l10n.h \
- figure.h \
- filedlg.C \
- filedlg.h \
- font.C \
- font.h \
- form1.C \
- form1.h \
gettext.C \
gettext.h \
+ factory.h \
+ factory.C \
+ format.C \
+ format.h \
+ funcrequest.h \
+ funcrequest.C \
+ graph.C \
+ graph.h \
importer.C \
importer.h \
- include_form.h \
intl.C \
intl.h \
+ insetiterator.C \
+ insetiterator.h \
kbmap.C \
kbmap.h \
kbsequence.C \
kbsequence.h \
language.C \
language.h \
- lastfiles.C \
- lastfiles.h \
- layout.C \
+ session.C \
+ session.h \
layout.h \
- layout_forms.C \
- layout_forms.h \
- log_form.C \
- log_form.h \
- lyx.C \
- lyx.h \
+ lengthcommon.C \
+ lengthcommon.h \
+ lfuns.h \
lyx_cb.C \
lyx_cb.h \
- lyx_gui.C \
- lyx_gui.h \
- lyx_gui_misc.C \
- lyx_gui_misc.h \
lyx_main.C \
lyx_main.h \
lyx_sty.C \
lyx_sty.h \
- lyxcursor.C \
- lyxcursor.h \
lyxfont.C \
lyxfont.h \
- lyxfr0.C \
- lyxfr0.h \
- lyxfr1.C \
- lyxfr1.h \
+ lyxfind.C \
+ lyxfind.h \
lyxfunc.C \
lyxfunc.h \
+ lyxgluelength.C \
+ lyxgluelength.h \
+ lyxlayout.C \
+ lyxlayout.h \
+ lyxlayout_ptr_fwd.h \
+ lyxlength.C \
+ lyxlength.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 \
+ lyxsocket.C \
+ lyxsocket.h \
lyxtext.h \
+ lyxtextclass.C \
+ lyxtextclass.h \
+ lyxtextclasslist.C \
+ lyxtextclasslist.h \
lyxvc.C \
lyxvc.h \
- main.C \
- minibuffer.C \
- minibuffer.h \
- nt_defines.h \
- os2_defines.h \
- os2_errortable.h \
+ messages.C \
+ messages.h \
+ metricsinfo.C \
+ metricsinfo.h \
+ mover.C \
+ mover.h \
+ output.C \
+ output.h \
+ outputparams.C \
+ outputparams.h \
+ output_docbook.C \
+ output_docbook.h \
+ output_latex.C \
+ output_latex.h \
+ output_plaintext.C \
+ output_plaintext.h \
+ paper.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 \
+ paragraph.h \
+ ParagraphMetrics.C \
+ ParagraphMetrics.h \
+ paragraph_funcs.C \
+ paragraph_funcs.h \
+ paragraph_pimpl.C \
+ paragraph_pimpl.h \
+ pariterator.C \
+ pariterator.h \
+ $(ASPELL) $(PSPELL) $(ISPELL) SpellBase.C \
+ SpellBase.h \
+ rowpainter.C \
+ rowpainter.h \
+ sgml.C \
+ sgml.h \
tabular.C \
tabular.h \
- tabular-old.C \
tex-accent.C \
tex-accent.h \
- tex-defs.h \
tex-strings.C \
tex-strings.h \
texrow.C \
texrow.h \
text.C \
text2.C \
- tracer.C \
- tracer.h \
+ text3.C \
+ TextMetrics.C \
+ TextMetrics.h \
+ TocBackend.C \
+ TocBackend.h \
+ toc.C \
+ toc.h \
trans.C \
trans.h \
trans_decl.h \
undo.h \
vc-backend.C \
vc-backend.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 commandtags.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
+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 > $@