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

Last change on this file since 1159 was 1159, checked in by Peter Johansson, 12 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
RevLine 
[21]1## Process this file with automake to produce Makefile.in
2##
3## $Id: Makefile.am 1159 2010-08-10 13:20:04Z peter $
[37]4
[978]5# Copyright (C) 2005 Jari Häkkinen
6# Copyright (C) 2006, 2007, 2008, 2009 Jari Häkkinen, Peter Johansson
[1055]7# Copyright (C) 2010 Peter Johansson
[84]8#
[687]9# This file is part of svndigest, http://dev.thep.lu.se/svndigest
[84]10#
[148]11# svndigest is free software; you can redistribute it and/or modify it
[84]12# under the terms of the GNU General Public License as published by
[693]13# the Free Software Foundation; either version 3 of the License, or
[84]14# (at your option) any later version.
15#
[148]16# svndigest is distributed in the hope that it will be useful, but
[84]17# WITHOUT ANY WARRANTY; without even the implied warranty of
[148]18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[84]19# General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
[693]22# along with svndigest. If not, see <http://www.gnu.org/licenses/>.
[84]23
[1055]24bin_PROGRAMS = svndigest svncopyright
[37]25
[1060]26svndigest_SOURCES = Parameter.cc svndigestParameter.cc svndigest.cc
27svncopyright_SOURCES = Parameter.cc svncopyrightParameter.cc svncopyright.cc
[37]28
[1060]29noinst_HEADERS = Parameter.h svncopyrightParameter.h svndigestParameter.h
[81]30
[907]31bin_SCRIPTS = svndigest-copy-cache
32EXTRA_DIST = svndigest-copy-cache.as
33
[795]34LDADD = $(top_builddir)/lib/libsvndigest.a \
[1119]35  $(top_builddir)/yat/libyat.a $(SVN_LIBS) $(APR_LIBS) $(PLPLOT_LIBS)
[1159]36AM_LDFLAGS = $(SVNDIGEST_LDFLAGS)
[49]37
[1159]38AM_CPPFLAGS  = -I$(top_srcdir) $(SVNDIGEST_CPPFLAGS)
39AM_CXXFLAGS = $(SVNDIGEST_CXXFLAGS)
[49]40
[1086]41##svndigest_LDADD = $(LDADD) $(PLPLOT_LIBS)
42##svndigest_LDFLAGS = $(AM_LDFLAGS) $(PLPLOT_LDFLAGS)
43##svndigest_CPPFLAGS  = $(AM_CPPFLAGS) $(PLPLOT_CPPFLAGS)
[1060]44
[907]45.as.in:
[911]46  $(AUTOM4TE) -l M4sh -o $@ $(M4SH_OPTIONS) $<
[907]47
48MAINTAINERCLEANFILES = svndigest-copy-cache.in
49
[49]50clean-local:
[139]51  rm -rf *~
Note: See TracBrowser for help on using the repository browser.