lyx_mirror/config/common.am
Lars Gullik Bjønnes 197c26de99 More pch work.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8956 a592a061-630c-0410-9148-cb99ea01b6c8
2004-08-18 14:20:18 +00:00

36 lines
701 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 =