source: branches/0.8-stable/bin/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: 1.7 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
24bin_PROGRAMS = svndigest svncopyright
25
26svndigest_SOURCES = Parameter.cc svndigestParameter.cc svndigest.cc
27svncopyright_SOURCES = Parameter.cc svncopyrightParameter.cc svncopyright.cc
28
29noinst_HEADERS = Parameter.h svncopyrightParameter.h svndigestParameter.h
30
31bin_SCRIPTS = svndigest-copy-cache
32EXTRA_DIST = svndigest-copy-cache.as
33
34LDADD = $(top_builddir)/lib/libsvndigest.a \
35  $(top_builddir)/yat/libyat.a $(SVN_LIBS) $(APR_LIBS) $(PLPLOT_LIBS)
36AM_LDFLAGS = $(SVNDIGEST_LDFLAGS)
37
38AM_CPPFLAGS  = -I$(top_srcdir) $(SVNDIGEST_CPPFLAGS)
39AM_CXXFLAGS = $(SVNDIGEST_CXXFLAGS)
40
41##svndigest_LDADD = $(LDADD) $(PLPLOT_LIBS)
42##svndigest_LDFLAGS = $(AM_LDFLAGS) $(PLPLOT_LDFLAGS)
43##svndigest_CPPFLAGS  = $(AM_CPPFLAGS) $(PLPLOT_CPPFLAGS)
44
45.as.in:
46  $(AUTOM4TE) -l M4sh -o $@ $(M4SH_OPTIONS) $<
47
48MAINTAINERCLEANFILES = svndigest-copy-cache.in
49
50clean-local:
51  rm -rf *~
Note: See TracBrowser for help on using the repository browser.