-AUTOMAKE_OPTIONS = foreign 1.4
-DISTCLEANFILES= *.orig *.rej *~ *.bak core
-MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
-# xforms has to be fixed here as we still need object files in this directory
-# for the compilation of other frontends, so until that we have to let this
-# here.
-SUBDIRS = xforms @FRONTEND@
-ETAGS_ARGS = --lang=c++
-INCLUDES = ${FRONTEND_INCLUDES} -I${srcdir}/.. -I${srcdir}/xforms ${SIGC_CFLAGS}
-LIBS =
+include $(top_srcdir)/config/common.am
+
+SUBDIRS = controllers $(FRONTENDS_SUBDIRS)
+
+DIST_SUBDIRS = controllers xforms qt2 gnome gtk
+
noinst_LTLIBRARIES = libfrontends.la
-libfrontends_la_SOURCES=\
- ButtonPolicies.C \
- ButtonPolicies.h \
- Dialogs.h \
- DialogBase.h \
- GUIRunTime.h \
- Liason.C \
- Liason.h \
- Menubar.C \
- Menubar.h \
- Toolbar.C \
- Toolbar.h
-EXTRA_DIST = kde gnome
+INCLUDES = -I$(srcdir)/.. $(BOOST_INCLUDES)
+
+AM_CXXFLAGS = $(PCH_FLAGS)
-dist-hook:
- @cd $(distdir) ; rm -rf `find kde -name \*CVS\*`; \
- rm -rf `find gnome -name \*CVS\*`
+libfrontends_la_SOURCES = \
+ Alert.C \
+ Alert.h \
+ Alert_pimpl.h \
+ Dialogs.C \
+ Dialogs.h \
+ FileDialog.h \
+ LyXKeySym.h \
+ LyXKeySymFactory.h \
+ LyXScreenFactory.h \
+ LyXView.C \
+ LyXView.h \
+ Menubar.h \
+ Painter.C \
+ Painter.h \
+ Timeout.C \
+ Timeout.h \
+ Toolbars.C \
+ Toolbars.h \
+ WorkArea.h \
+ WorkAreaFactory.h \
+ font_metrics.h \
+ guiapi.h \
+ guiapi.C \
+ key_state.h \
+ lyx_gui.h \
+ mouse_state.h \
+ nullpainter.C \
+ nullpainter.h \
+ screen.C \
+ screen.h