lyx_mirror/config/common.am
Lars Gullik Bjønnes c5186dcb4d Improve/Fix pch a bit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8964 a592a061-630c-0410-9148-cb99ea01b6c8
2004-08-29 23:52:48 +00:00

36 lines
705 B
Plaintext

AUTOMAKE_OPTIONS = foreign
CLEANFILES = pch.h.gch
DISTCLEANFILES= *.orig *.rej *~ *.bak core
MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
AM_INSTALL_DATA_FLAGS = $(INSTALL) -m 644 -D
AM_ETAGSFLAGS = --lang=c++
if LYX_BUILD_PCH
PCH_FLAGS = -Winvalid-pch --include=./pch.h
PCH_FILE = ./pch.h.gch
PCH_SOURCE = ./pch.h
sinclude ./pch.h.gch.dep
*.C *.cpp: $(PCH_FILE)
pch.h.gch: $(PCH_SOURCE)
$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
$(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
endif
LIBS =