Imported Upstream version 2.4.2
[platform/upstream/libtool.git] / tests / tagdemo / Makefile.am
1 ## Makefile.am -- Process this file with automake to produce Makefile.in
2 ##
3 ##   Copyright (C) 2003, 2004, 2005, 2011 Free Software Foundation
4 ##   Written by Gary V. Vaughan, 2003
5 ##
6 ##   This file is part of GNU Libtool.
7 ##
8 ## GNU Libtool is free software; you can redistribute it and/or
9 ## modify it under the terms of the GNU General Public License as
10 ## published by the Free Software Foundation; either version 2 of
11 ## the License, or (at your option) any later version.
12 ##
13 ## GNU Libtool is distributed in the hope that it will be useful,
14 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 ## GNU General Public License for more details.
17 ##
18 ## You should have received a copy of the GNU General Public License
19 ## along with GNU Libtool; see the file COPYING.  If not, a copy
20 ## can be downloaded from  http://www.gnu.org/licenses/gpl.html,
21 ## or obtained by writing to the Free Software Foundation, Inc.,
22 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 #####
24
25 AUTOMAKE_OPTIONS = no-dependencies foreign
26 ACLOCAL_AMFLAGS  = -I ../../libltdl/m4
27 AM_CPPFLAGS      = -I$(top_srcdir)/../..
28
29 noinst_LTLIBRARIES = libconv.la
30 lib_LTLIBRARIES = libfoo.la libbaz.la
31
32 libfoo_la_SOURCES = foo.cpp
33 libfoo_la_LDFLAGS = -no-undefined
34 libfoo_la_LIBADD = libconv.la $(LIBM)
35
36 # Test some of the ILD support when using tagged configurations.
37 libbaz_la_SOURCES = baz.cpp
38 libbaz_la_LDFLAGS = -no-undefined
39 libbaz_la_LIBADD = libfoo.la
40
41 # Test convenience libraries.
42 libconv_la_SOURCES = conv.cpp
43 libconv_la_LDFLAGS = -no-undefined
44
45 noinst_HEADERS = foo.h baz.h conv.h
46
47 bin_PROGRAMS = tagdemo
48
49 tagdemo_SOURCES = main.cpp
50 tagdemo_LDADD = libbaz.la libfoo.la
51
52 libtool: $(LIBTOOL_DEPS)
53         $(SHELL) ./config.status --recheck
54
55 # Workaround a bug in Autoconf-2.61 and earlier that don't clean up
56 # file droppings left by many compilers:
57 distclean-local:
58         ac_files="a.out.* a.exe.* a_out.exe.* b.out.* conftest.*"; \
59         for ac_file in $$ac_files; do \
60           case $$ac_file in \
61             *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) rm -rf $$ac_file ;; \
62           esac; \
63         done