source: branches/0.8-stable/lib/Makefile.am @ 1159

Last change on this file since 1159 was 1159, checked in by Peter Johansson, 11 years ago

refs #467. Change how CPPFLAGS, CXXFLAGS and LDFLAGS are picked up
automagically in configure. First, save flag given by user. Second add
flags to e.g. LDFLAGS (based on --with-plplot etc) but add only values
not already in LDFLAGS. Third, calculate difference SVNDIGEST_LDFLAGS

LDFLAGS - LDFLAGS_init and restore LDFLAGS to LDFLAGS_init (given by

user). This implies we avoid multiple identical entries. For example,
before the linker could get 3 copies of '-L/opt/local/lib' because it
got one from APR_LDFLAGS, one from SVN_LDFLAGS, and one from
PLPLOT_LDFLAGS. It also means that if user gives ./configure -L/foo
-L/bar, configure will not add these paths into SVNDIGEST_LDFLAGS and
hence the user is in power of deciding the path order for the
linker/compiler.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 1159 2010-08-10 13:20:04Z peter $
4
5# Copyright (C) 2005 Jari Häkkinen
6# Copyright (C) 2006, 2007, 2008, 2009 Jari Häkkinen, Peter Johansson
7# Copyright (C) 2010 Peter Johansson
8#
9# This file is part of svndigest, http://dev.thep.lu.se/svndigest
10#
11# svndigest is free software; you can redistribute it and/or modify it
12# under the terms of the GNU General Public License as published by
13# the Free Software Foundation; either version 3 of the License, or
14# (at your option) any later version.
15#
16# svndigest is distributed in the hope that it will be useful, but
17# WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19# General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with svndigest. If not, see <http://www.gnu.org/licenses/>.
23
24MOVE_IF_CHANGE = $(SHELL) $(top_srcdir)/build_support/move-if-change
25SVN_REVISION = `$(SVNVERSION) $(top_srcdir)`
26
27AM_CPPFLAGS = -I$(top_srcdir) $(SVNDIGEST_CPPFLAGS)
28AM_CXXFLAGS = $(SVNDIGEST_CXXFLAGS)
29
30noinst_LIBRARIES = libsvndigest.a
31
32noinst_HEADERS = AddStats.h Alias.h BlameStats.h ClassicStats.h \
33  Colors.h Commitment.h Configuration.h css.h \
34  Date.h Directory.h File.h first_page.h Functor.h \
35  Graph.h \
36  HtmlBuf.h HtmlStream.h html_utility.h LineTypeParser.h \
37  main_utility.h Node.h \
38  OptionVersion.h rmdirhier.h \
39  Stats.h StatsCollection.h subversion_info.h SVN.h SVNblame.h  \
40  SVNinfo.h SVNlog.h SVNproperty.h Trac.h utility.h
41
42libsvndigest_a_SOURCES = AddStats.cc Alias.cc BlameStats.cc \
43  ClassicStats.cc Colors.cc \
44  Commitment.cc Configuration.cc \
45  css.cc Date.cc Directory.cc File.cc first_page.cc\
46  Functor.cc Graph.cc HtmlBuf.cc HtmlStream.cc \
47  html_utility.cc LineTypeParser.cc main_utility.cc Node.cc \
48  OptionVersion.cc \
49  rmdirhier.cc Stats.cc StatsCollection.cc subversion_info.cc SVN.cc \
50  SVNblame.cc SVNinfo.cc SVNlog.cc SVNproperty.cc Trac.cc utility.cc
51
52
53
54
55clean-local:
56  rm -rf *~
57
58all-local:
59
60if HAVE_SVN_WC
61$(srcdir)/subversion_info.cc: subversion_info.cc.tmp
62  @$(MOVE_IF_CHANGE) subversion_info.cc.tmp $@
63
64subversion_info.cc.tmp: FORCE
65  @echo '// subversion_info.cc generated from subversion_info.cc.in.' > $@ ;\
66  revision=$(SVN_REVISION);\
67  $(SED) -e 's/sub_2_svn_revision/r'$$revision'/g' \
68  $(srcdir)/subversion_info.cc.in >> $@ ;
69
70else
71# this is needed in 'svn export' build
72$(srcdir)/subversion_info.cc:
73  $(SED) -e 's/sub_2_svn_revision//g' \
74  $(srcdir)/subversion_info.cc.in >> $@ ;
75
76endif
77
78FORCE:
Note: See TracBrowser for help on using the repository browser.