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:
|
2005-05-04 16:42:06 +00:00
|
|
|
$(CXXCOMPILE) -x c++-header $(PCH_SOURCE) -o $(PCH_FILE) \
|
|
|
|
-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
|
2004-12-05 17:10:58 +00:00
|
|
|
BOOST_FILESYSTEM = $(top_builddir)/boost/libs/filesystem/src/libboost_filesystem.la
|
|
|
|
BOOST_REGEX = $(top_builddir)/boost/libs/regex/src/libboost_regex.la
|
|
|
|
BOOST_SIGNALS = $(top_builddir)/boost/libs/signals/src/libboost_signals.la
|
2006-04-20 20:44:05 +00:00
|
|
|
BOOST_IOSTREAMS = $(top_builddir)/boost/libs/iostreams/src/libboost_iostreams.la
|
2004-12-05 17:10:58 +00:00
|
|
|
else
|
|
|
|
BOOST_INCLUDES =
|
|
|
|
BOOST_FILESYSTEM = -lboost_filesystem
|
|
|
|
BOOST_REGEX = -lboost_regex
|
|
|
|
BOOST_SIGNALS = -lboost_signals
|
2006-04-20 20:44:05 +00:00
|
|
|
BOOST_IOSTREAMS = -lboost_iostreams
|
2003-05-07 16:22:01 +00:00
|
|
|
endif
|
2002-03-25 11:15:27 +00:00
|
|
|
|
|
|
|
LIBS =
|