2005-11-18 Roland McGrath <roland@redhat.com>
[platform/upstream/elfutils.git] / Makefile.am
1 ## Process this file with automake to create Makefile.in
2 ## Configure input file for elfutils.
3 ##
4 ## Copyright (C) 1996-2002, 2003, 2004, 2005 Red Hat, Inc.
5 ##
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation, version 2.
9 ##
10 ## This program is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 ## GNU General Public License for more details.
14 ##
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program; if not, write to the Free Software Foundation,
17 ## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 ##
19 ACLOCAL_AMFLAGS = -I m4
20
21 mini_SUBDIRS = config m4 lib libelf libelf-po
22 # Add doc back when we have some real content.
23 all_SUBDIRS = libebl libdwfl libdw libcpu libasm backends src po tests
24 SUBDIRS = $(mini_SUBDIRS) $(all_SUBDIRS)
25
26 EXTRA_DIST = elfutils.spec GPG-KEY NOTES COPYING.GPL
27
28 # Make sure the test install uses lib64 when $LIB will yield lib64.
29 # Make sure the test build uses the same compiler, which on e.g. ppc64
30 # determines which platform we are actually testing.
31 DISTCHECK_CONFIGURE_FLAGS = \
32         --libdir=`echo $(libdir) | sed "s,^$(exec_prefix),$$dc_install_base,"`\
33         CC="$(CC)"
34
35 distcheck-hook:
36         chmod -R u+w $(distdir)
37
38 rpm: dist
39         rpmbuild -ts --sign elfutils-@PACKAGE_VERSION@.tar.gz
40
41 # Tell version 3.79 and up of GNU make to not build goals in this
42 # directory in parallel.
43 .NOTPARALLEL: