+2004-08-18 Lars Gullik Bjonnes <larsbj@gullik.net>
+
+ * More pch work.
+
2004-08-03 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* configure.ac: instead of the previous code (which does not
2004-07-26 Lars Gullik Bjonnes <larsbj@gullik.net>
* configure.ac: add code that some xforms tests are run only once
- even if both xforms and gtk are configured.
+ even if both xforms and gtk are configured.
2004-06-09 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
*.lo
.libs
.deps
+pch.h.gch
+pch.h.gch.dep
INCLUDES = $(BOOST_INCLUDES)
-AM_CXXFLAGS = -DBOOST_USER_CONFIG="<config.h>"
+AM_CPPFLAGS = -DBOOST_USER_CONFIG="<config.h>"
+AM_CXXFLAGS = $(PCH_FLAGS)
libboostfilesystem_la_SOURCES = \
convenience.cpp \
--- /dev/null
+#include <boost/config.hpp>
+#include <boost/detail/workaround.hpp>
+#include <boost/filesystem/config.hpp>
+#include <boost/filesystem/convenience.hpp>
+#include <boost/filesystem/exception.hpp>
+#include <boost/filesystem/operations.hpp>
+#include <boost/filesystem/path.hpp>
+#include <boost/scoped_array.hpp>
+#include <boost/throw_exception.hpp>
+
+#include <cassert>
+#include <cerrno>
+#include <cstdio> // for remove, rename
+#include <cstring>
+#include <cstring> // SGI MIPSpro compilers need this
+#include <cstring> // SGI MIPSpro compilers need this
+#include <string>
+#include <sys/stat.h> // last_write_time() uses stat()
+#include <vector>
*.lo
.deps
.libs
+pch.h.gch
+pch.h.gch.dep
INCLUDES = $(BOOST_INCLUDES)
-AM_CXXFLAGS = -DBOOST_USER_CONFIG="<config.h>"
+AM_CPPFLAGS = -DBOOST_USER_CONFIG="<config.h>"
+AM_CXXFLAGS = $(PCH_FLAGS)
libboostregex_la_SOURCES = \
cpp_regex_traits.cpp \
--- /dev/null
+#include <cctype>
+#include <climits>
+#include <clocale>
+#include <cstdio>
+#include <cstring>
+#include <cwchar>
+#include <iostream>
+#include <list>
+#include <locale>
+#include <map>
+#include <new>
+#include <ostream>
+#include <set>
+#include <stdexcept>
*.lo
.deps
.libs
+pch.h.gch
+pch.h.gch.dep
INCLUDES = $(BOOST_INCLUDES)
-AM_CXXFLAGS = -DBOOST_USER_CONFIG="<config.h>"
+AM_CPPFLAGS = -DBOOST_USER_CONFIG="<config.h>"
+AM_CXXFLAGS = $(PCH_FLAGS)
libboostsignals_la_SOURCES = \
connection.cpp \
--- /dev/null
+#include <boost/signals/connection.hpp>
+#include <boost/signals/detail/signal_base.hpp>
+#include <boost/signals/slot.hpp>
+#include <boost/signals/trackable.hpp>
+
+#include <algorithm>
+#include <cassert>
AUTOMAKE_OPTIONS = foreign
+CLEANFILES = pch.h.gch
+
DISTCLEANFILES= *.orig *.rej *~ *.bak core
MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
if LYX_BUILD_PCH
PCH_FLAGS = -Winvalid-pch --include=pch.h
-PCH_FILE = pch.h.gch
-endif
+PCH_FILE = ./pch.h.gch
+PCH_SOURCE = ./pch.h
+sinclude pch.h.gch.dep
+
+*.C *.cpp: $(PCH_FILE)
-pch.h.gch:
+pch.h.gch: $(PCH_SOURCE)
$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
- $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -x c++-header pch.h
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(CXXFLAGS) \
+ -x c++-header $(PCH_SOURCE) -MT $@ -MD -MP -MF "./$@.Tdep" \
+ && mv "./$@.Tdep" "./$@.dep" || rm "./$@.Tdep"
+
+endif
+
+SUFFIXES = .gch
if USE_INCLUDED_BOOST
BOOST_INCLUDES = -I$(top_srcdir)/boost
*.deps
.libs
pch.h.gch
+pch.h.gch.dep
AM_CXXFLAGS = $(PCH_FLAGS)
-lyx_DEPENDENCIES = $(PCH_FILE)
-
lyx_SOURCES = \
Bidi.C \
Bidi.h \
.libs
libfrontends.la
pch.h.gch
+pch.h.gch.dep
AM_CXXFLAGS = $(PCH_FLAGS)
-libfrontends_la_DEPENDENCIES = $(PCH_FILE)
-
libfrontends_la_SOURCES = \
Alert.C \
Alert.h \
.libs
libcontrollers.la
pch.h.gch
+pch.h.gch.dep
AM_CXXFLAGS = $(PCH_FLAGS)
libcontrollers_la_SOURCES= \
- $(PCH_FILE) Dialog.C \
+ Dialog.C \
Dialog.h \
Kernel.C \
Kernel.h \
libqt2_la_LDFLAGS = $(QT_LDFLAGS)
libqt2_la_LIBADD = $(QT_LIB) ui/*.lo moc/*.lo ui/moc/*.lo
-AM_CXXFLAGS = $(PCH_FLAGS) -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR
-
-libqt2_la_DEPENDENCIES = $(PCH_FILE)
+AM_CPPFLAGS = -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR
+AM_CXXFLAGS = $(PCH_FLAGS)
libqt2_la_SOURCES = \
QDialogView.C \
lyx_xpm.h-tmp
stamp-xpm
pch.h.gch
+pch.h.gch.dep
include $(top_srcdir)/config/common.am
SUBDIRS = forms
-CLEANFILES = stamp-xpm stamp-forms
+CLEANFILES += stamp-xpm stamp-forms
DISTCLEANFILES += lyx_forms.h lyx_forms.h-tmp lyx_xpm.h lyx_xpm.h-tmp
BUILT_SOURCES = lyx_forms.h lyx_xpm.h
libxforms_la_LIBADD = @XFORMS_LIBS@ forms/*.lo
-libxforms_la_DEPENDENCIES = $(PCH_FILE)
-
# Alphabetical order please. It makes it easier to figure out what's missing.
libxforms_la_SOURCES = \
forms_fwd.h \
*.lo
.deps
libfdesign.la
+pch.h.gch
+pch.h.gch.dep
# For (forms_fwd.h, forms_gettext.h) and support/std_string.h, respectively.
INCLUDES = -I$(srcdir)/.. -I$(top_srcdir)/src -I..
+AM_CXXFLAGS = $(PCH_FLAGS)
+
noinst_LTLIBRARIES = libfdesign.la
SRCS = form_aboutlyx.fd \
--- /dev/null
+#include <config.h>
+
+#include "bmtable.h"
+#include "combox.h"
+#include "fdesign_base.h"
+#include "gettext.h"
+
+#include "../lyx_forms.h"
+
+#include <stdlib.h>
.libs
libgraphics.la
pch.h.gch
+pch.h.gch.dep
AM_CXXFLAGS = $(PCH_FLAGS)
libgraphics_la_SOURCES = \
- $(PCH_FILE) GraphicsCache.h \
+ GraphicsCache.h \
GraphicsCache.C \
GraphicsCacheItem.h \
GraphicsCacheItem.C \
.libs
libinsets.la
pch.h.gch
+pch.h.gch.dep
AM_CXXFLAGS = $(PCH_FLAGS)
-libinsets_la_DEPENDENCIES = $(PCH_FILE)
-
libinsets_la_SOURCES = \
- $(PCH_FILE) mailinset.C \
+ mailinset.C \
mailinset.h \
ExternalSupport.C \
ExternalSupport.h \
#include <config.h>
+#include "insetbase.h"
+
#include <boost/any.hpp>
#include <boost/assert.hpp>
#include <boost/function.hpp>
.libs
libmathed.la
pch.h.gch
+pch.h.gch.dep
AM_CXXFLAGS = $(PCH_FLAGS)
-libmathed_la_DEPENDENCIES = $(PCH_FILE)
-
libmathed_la_SOURCES = \
- $(PCH_FILE) textpainter.C \
+ textpainter.C \
textpainter.h \
math_amsarrayinset.C \
math_amsarrayinset.h \
.libs
path_defines.C
pch.h.gch
+pch.h.gch.dep
noinst_LTLIBRARIES = libsupport.la
-CLEANFILES = path_defines.C
+CLEANFILES += path_defines.C
INCLUDES = -I$(srcdir)/../ $(BOOST_INCLUDES)
AM_CXXFLAGS = $(PCH_FLAGS)
libsupport_la_SOURCES = \
- $(PCH_FILE) FileInfo.C \
+ FileInfo.C \
FileInfo.h \
FileMonitor.h \
FileMonitor.C \
lyxtextclass.[Ch]
lyxlex.C
lyxlex_pimpl.C
+pch.h.gch
+pch.h.gch.dep
bin_PROGRAMS = tex2lyx
+AM_CXXFLAGS = $(PCH_FLAGS)
+
BUILT_SOURCES = \
FloatList.C \
Floating.C \
--- /dev/null
+#include <config.h>
+
+#include <boost/assert.hpp>
+#include <boost/function.hpp>
+#include <boost/shared_ptr.hpp>
+#include <boost/tuple/tuple.hpp>
+
+#include <algorithm>
+#include <cctype>
+#include <cstdlib>
+#include <exception>
+#include <fstream>
+#include <iosfwd>
+#include <iostream>
+#include <map>
+#include <sstream>
+#include <string>
+#include <vector>