-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 = support xforms controllers @FRONTEND@
-ETAGS_ARGS = --lang=c++
-BOOST_INCLUDES = -I$(top_srcdir)/boost
-INCLUDES = ${FRONTEND_INCLUDES} -I${srcdir}/.. -I${srcdir}/xforms ${SIGC_CFLAGS} $(BOOST_INCLUDES)
-LIBS =
+include $(top_srcdir)/config/common.am
+
+SUBDIRS = controllers $(FRONTENDS_SUBDIRS)
+
+DIST_SUBDIRS = controllers qt4
+
+EXTRA_DIST = pch.h
+
+BUILT_SOURCES = $(PCH_FILE)
+
noinst_LTLIBRARIES = libfrontends.la
-libfrontends_la_SOURCES=\
+
+AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
+
+libfrontends_la_SOURCES = \
+ alert.cpp \
+ alert.h \
+ Alert_pimpl.h \
+ Application.cpp \
+ Application.h \
+ NoGuiFontLoader.h \
+ NoGuiFontMetrics.h \
+ Dialogs.cpp \
Dialogs.h \
- DialogBase.h \
FileDialog.h \
- GUIRunTime.h \
- Liason.C \
- Liason.h \
- Menubar.C \
+ FontLoader.h \
+ FontMetrics.h \
+ KeySymbol.h \
+ LyXView.cpp \
+ LyXView.h \
Menubar.h \
- Timeout.C \
+ Painter.cpp \
+ Painter.h \
+ Timeout.cpp \
Timeout.h \
- Toolbar.C \
- Toolbar.h
-
-EXTRA_DIST = kde qt2 gnome
-
-dist-hook:
- @cd $(distdir) ; \
- rm -rf `find kde -name \*CVS\*`; \
- rm -rf `find qt2 -name \*CVS\*`; \
- rm -rf `find gnome -name \*CVS\*`
+ Toolbars.cpp \
+ Toolbars.h \
+ Clipboard.h \
+ Gui.h \
+ Selection.h \
+ WorkArea.cpp \
+ WorkArea.h \
+ key_state.h \
+ mouse_state.h