1 ## Makefile.am -- Process this file with automake to produce Makefile.in
3 ## Copyright (C) 2003, 2004, 2005 Free Software Foundation
4 ## Written by Gary V. Vaughan, 2003
6 ## This file is part of GNU Libtool.
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.
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.
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.
25 AUTOMAKE_OPTIONS = no-dependencies foreign
26 ACLOCAL_AMFLAGS = -I ../../libltdl/m4
27 AM_CPPFLAGS = -I$(top_srcdir)/../..
29 lib_LTLIBRARIES = libfoo.la libmix.la libfoo2.la libfoo3.la
31 libfoo_la_SOURCES = foof.f
32 libfoo_la_LDFLAGS = -no-undefined
33 libfoo_la_LIBADD = libfoo2.la
35 libfoo2_la_SOURCES = foof2.f
36 libfoo2_la_LDFLAGS = -no-undefined
38 libfoo3_la_SOURCES = foof3.f
39 libfoo3_la_LDFLAGS = -no-undefined
41 libmix_la_SOURCES = foof.f foof2.f fooc.c
42 libmix_la_LDFLAGS = -no-undefined
44 noinst_HEADERS = foo.h
46 bin_PROGRAMS = fprogram cprogram
48 fprogram_SOURCES = fprogram.f
49 fprogram_LDADD = libfoo.la libfoo3.la
51 cprogram_SOURCES = cprogram.c
52 cprogram_LDADD = libmix.la $(FLIBS)
54 libtool: $(LIBTOOL_DEPS)
55 $(SHELL) ./config.status --recheck
57 # Workaround a bug in Autoconf-2.61 and earlier that don't clean up
58 # file droppings left by many compilers:
60 ac_files="a.out.* a.exe.* a_out.exe.* b.out.* conftest.*"; \
61 for ac_file in $$ac_files; do \
63 *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) rm -rf $$ac_file ;; \