AUTOMAKE_OPTIONS = foreign
-SUBDIRS = mathed insets support
-DISTCLEANFILES = libintl.h config.h
-MAINTAINERCLEANFILES = Makefile.in config.h.in
+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
-lyx_DEPENDENCIES = mathed/libmathed.la insets/libinsets.la support/libsupport.la
-lyx_LDADD = $(lyx_DEPENDENCIES) @INTLLIBS@ $(LYX_LIBS)
+## 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 \
+ 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@
+#lyx_LDFLAGS=-Wl,-O1
EXTRA_DIST = config.h.in stamp-h.in cheaders
-ETAGS_ARGS = --c++
-INCLUDES = -I${top_srcdir}/images
+ETAGS_ARGS = --lang=c++
+INCLUDES = $(SIGC_CFLAGS) $(PSPELL_INCLUDES) @FRONTEND_INCLUDES@
localedir = $(datadir)/locale
lyx_SOURCES = \
BackStack.h \
CutAndPaste.h \
DepTable.C \
DepTable.h \
+ FloatList.C \
+ FloatList.h \
+ Floating.h \
FontInfo.C \
FontInfo.h \
FontLoader.C \
LyXView.C \
LyXView.h \
Makefile.in \
+ MenuBackend.C \
+ MenuBackend.h \
Painter.C \
Painter.h \
PainterBase.C \
PainterBase.h \
PaperLayout.C \
ParagraphExtra.C \
+ PrinterParams.h \
+ Sectioning.h \
+ Sectioning.C \
Spacing.C \
Spacing.h \
TableLayout.C \
- TabularLayout.C \
TextCache.C \
TextCache.h \
Timeout.C \
ToolbarDefaults.h \
UpdateInset.C \
UpdateInset.h \
+ Variables.C \
+ Variables.h \
WorkArea.C \
WorkArea.h \
bibforms.h \
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 \
debug.C \
debug.h \
- direction.h \
+ encoding.C \
+ encoding.h \
+ exporter.C \
+ exporter.h \
+ ext_l10n.h \
figure.h \
filedlg.C \
filedlg.h \
language.h \
lastfiles.C \
lastfiles.h \
- latexoptions.C \
- latexoptions.h \
layout.C \
layout.h \
layout_forms.C \
layout_forms.h \
+ log_form.C \
+ log_form.h \
lyx.C \
lyx.h \
lyx_cb.C \
tex-defs.h \
tex-strings.C \
tex-strings.h \
- texoptions.C \
texrow.C \
texrow.h \
text.C \
text2.C \
- toolbar.C \
- toolbar.h \
tracer.C \
tracer.h \
trans.C \