-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 xforms qt2 gtk
+
+EXTRA_DIST = pch.h
+
+BUILT_SOURCES = $(PCH_FILE)
+