2004-08-18 14:20:18 +00:00
|
|
|
CLEANFILES = pch.h.gch
|
|
|
|
|
2005-05-04 16:42:06 +00:00
|
|
|
DISTCLEANFILES= pch.h.gch.dep *.orig *.rej *~ *.bak core
|
2002-03-13 18:24:44 +00:00
|
|
|
|
|
|
|
MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
|
|
|
|
|
2003-01-12 22:24:47 +00:00
|
|
|
AM_INSTALL_DATA_FLAGS = $(INSTALL) -m 644 -D
|
|
|
|
|
2004-07-24 10:55:30 +00:00
|
|
|
AM_ETAGSFLAGS = --lang=c++
|
2002-03-13 18:24:44 +00:00
|
|
|
|
2004-08-15 21:45:30 +00:00
|
|
|
if LYX_BUILD_PCH
|
2004-12-04 12:45:48 +00:00
|
|
|
PCH_SOURCE = $(srcdir)/pch.h
|
|
|
|
PCH_FLAGS = -Winvalid-pch --include=$(PCH_SOURCE)
|
2004-08-18 14:20:18 +00:00
|
|
|
PCH_FILE = ./pch.h.gch
|
2004-08-29 23:52:48 +00:00
|
|
|
sinclude ./pch.h.gch.dep
|
2004-08-18 14:20:18 +00:00
|
|
|
|
2005-05-04 16:42:06 +00:00
|
|
|
*.o *.lo *.obj: $(PCH_FILE)
|
2004-08-15 21:45:30 +00:00
|
|
|
|
2004-12-04 12:45:48 +00:00
|
|
|
$(PCH_FILE): $(PCH_SOURCE)
|
2005-01-20 14:44:19 +00:00
|
|
|
$(MAKE) PCH_FLAGS= pch-file
|
|
|
|
|
|
|
|
pch-file:
|
2007-08-12 18:39:06 +00:00
|
|
|
$(CXXCOMPILE) -x c++-header -fPIC -DPIC $(PCH_SOURCE) -o $(PCH_FILE) \
|
2005-05-04 16:42:06 +00:00
|
|
|
-MT $(PCH_FILE) -MD -MP -MF "./$(PCH_FILE).Tdep" \
|
|
|
|
&& mv "./$(PCH_FILE).Tdep" "./$(PCH_FILE).dep" \
|
|
|
|
|| rm "./$(PCH_FILE).Tdep"
|
2004-08-18 14:20:18 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
SUFFIXES = .gch
|
2004-08-15 21:45:30 +00:00
|
|
|
|
2003-05-07 16:22:01 +00:00
|
|
|
if USE_INCLUDED_BOOST
|
2002-03-13 18:24:44 +00:00
|
|
|
BOOST_INCLUDES = -I$(top_srcdir)/boost
|
2007-08-10 22:33:54 +00:00
|
|
|
BOOST_LIBS = $(top_builddir)/boost/liblyxboost.la
|
2004-12-05 17:10:58 +00:00
|
|
|
else
|
|
|
|
BOOST_INCLUDES =
|
2009-06-06 13:14:05 +00:00
|
|
|
BOOST_FILESYSTEM = -lboost_filesystem$(BOOST_MT)
|
|
|
|
BOOST_REGEX = -lboost_regex$(BOOST_MT)
|
|
|
|
BOOST_SIGNALS = -lboost_signals$(BOOST_MT)
|
|
|
|
BOOST_IOSTREAMS = -lboost_iostreams$(BOOST_MT)
|
2007-09-21 07:18:21 +00:00
|
|
|
BOOST_LIBS = $(BOOST_FILESYSTEM) $(BOOST_REGEX) $(BOOST_SIGNALS) $(BOOST_IOSTREAMS)
|
2003-05-07 16:22:01 +00:00
|
|
|
endif
|
2002-03-25 11:15:27 +00:00
|
|
|
|
|
|
|
LIBS =
|