2002-03-13 18:24:44 +00:00
|
|
|
AUTOMAKE_OPTIONS = foreign
|
|
|
|
|
2004-08-18 14:20:18 +00:00
|
|
|
CLEANFILES = pch.h.gch
|
|
|
|
|
2002-03-18 22:38:25 +00:00
|
|
|
DISTCLEANFILES= *.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
|
|
|
|
|
|
|
*.C *.cpp: $(PCH_FILE)
|
2004-08-15 21:45:30 +00:00
|
|
|
|
2004-12-04 12:45:48 +00:00
|
|
|
$(PCH_FILE): $(PCH_SOURCE)
|
|
|
|
TMPCMD=` echo $(CXXCOMPILE) | sed -e s,\",\',` ; \
|
|
|
|
PATTERN=`echo $(PCH_FLAGS) | sed -e 's,\/,\\\/,'` ; \
|
|
|
|
$${TMPCMD/$$PATTERN} \
|
2004-08-18 14:20:18 +00:00
|
|
|
-x c++-header $(PCH_SOURCE) -MT $@ -MD -MP -MF "./$@.Tdep" \
|
|
|
|
&& mv "./$@.Tdep" "./$@.dep" || rm "./$@.Tdep"
|
|
|
|
|
|
|
|
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
|
|
|
|
else
|
|
|
|
BOOST_INCLUDES =
|
|
|
|
BOOST_FILESYSTEM = -lboost_filesystem
|
|
|
|
BOOST_REGEX = -lboost_regex
|
|
|
|
BOOST_SIGNALS = -lboost_signals
|
2003-05-07 16:22:01 +00:00
|
|
|
endif
|
2002-03-25 11:15:27 +00:00
|
|
|
|
|
|
|
LIBS =
|