* automake.in (handle_libraries): Recognize _AR variable.
+1999-05-04 Tom Tromey <tromey@cygnus.com>
+
+ * library.am (@LIBRARY@): Use $(@XLIBRARY@_AR).
+ * automake.in (handle_libraries): Recognize _AR variable.
+
1999-04-30 Tom Tromey <tromey@cygnus.com>
* automake.in (finish_languages): Always use `-o $@' with
# Canonicalize names and check for misspellings.
$xlib = &check_canonical_spelling ($onelib, '_LIBADD', '_SOURCES',
- '_OBJECTS', '_DEPENDENCIES');
+ '_OBJECTS', '_DEPENDENCIES', '_AR');
+
+ if (! &variable_defined ($xlib . '_AR'))
+ {
+ &define_variable ($xlib . '_AR', '$(AR) cru');
+ }
if (&variable_defined ($xlib . '_LIBADD'))
{
## automake - create Makefile.in from Makefile.am
-## Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
+## Copyright (C) 1994, 1995, 1996, 1999 Free Software Foundation, Inc.
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## 02111-1307, USA.
@LIBRARY@: $(@XLIBRARY@_OBJECTS) $(@XLIBRARY@_DEPENDENCIES)
-rm -f @LIBRARY@
- $(AR) cru @LIBRARY@ $(@XLIBRARY@_OBJECTS) $(@XLIBRARY@_LIBADD)
+ $(@XLIBRARY@_AR) @LIBRARY@ $(@XLIBRARY@_OBJECTS) $(@XLIBRARY@_LIBADD)
$(RANLIB) @LIBRARY@
## automake - create Makefile.in from Makefile.am
-## Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
+## Copyright (C) 1994, 1995, 1996, 1999 Free Software Foundation, Inc.
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## 02111-1307, USA.
@LIBRARY@: $(@XLIBRARY@_OBJECTS) $(@XLIBRARY@_DEPENDENCIES)
-rm -f @LIBRARY@
- $(AR) cru @LIBRARY@ $(@XLIBRARY@_OBJECTS) $(@XLIBRARY@_LIBADD)
+ $(@XLIBRARY@_AR) @LIBRARY@ $(@XLIBRARY@_OBJECTS) $(@XLIBRARY@_LIBADD)
$(RANLIB) @LIBRARY@