]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* automake.in (get_object_extension): Substitute @MINUSO@ when
authorTom Tromey <tromey@redhat.com>
Sun, 11 Apr 1999 13:12:05 +0000 (13:12 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 11 Apr 1999 13:12:05 +0000 (13:12 +0000)
including compile.am.
* compile.am (.c.o): Added @MINUSO@.
(.c.obj): Likewise.

ChangeLog
TODO
automake.in
compile.am
lib/am/compile.am

index 5cfa983eceb95ee4f6aea4cd5cef367e5459dc7b..5f2e861c53ed714765b59c6cb58f43ad5c00df64 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 1999-04-11  Tom Tromey  <tromey@cygnus.com>
 
+       * automake.in (get_object_extension): Substitute @MINUSO@ when
+       including compile.am.
+       * compile.am (.c.o): Added @MINUSO@.
+       (.c.obj): Likewise.
+
        First cut at allowing objects in subdirectories:
        * m4/Makefile.am (m4data_DATA): Added minuso.m4.
        * Makefile.am (dist_script_DATA): Added compile.
diff --git a/TODO b/TODO
index febdb9aa51c36d2867dee97ccc85c6bbbf3e5d63..c778e41e93420e0a926292f14a4609f7e75d498a 100644 (file)
--- a/TODO
+++ b/TODO
@@ -4,6 +4,7 @@
   if there are two `bar.o' files and the timing is just right
   This only happens with parallel make and no-`-c -o' compiler,
   so it probably isn't very important
+  change compile.am and lang_c_finish to deal with -c -o.
 
 * Run automake before libtool.  It will report an error but
   still won't put the file into the disty.  This is wrong.
index 83661c1579271a95d3d98f016abf88868003d245..d0b50e8a1a30fb7f26ee022ca4e22679fd6bd12a 100755 (executable)
@@ -815,7 +815,10 @@ sub get_object_extension
        $xform = (($use_dependencies
                   ? 's/^NOTDEPEND.*$//;'
                   : 's/^NOTDEPEND//;')
-                 . ($seen_objext ? 's/^OBJEXT//;' : 's/^OBJEXT.*$//;'));
+                 . ($seen_objext ? 's/^OBJEXT//;' : 's/^OBJEXT.*$//;')
+                 . 's/\@MINUSO\@/'
+                 . (defined $options{'subdir-objects'} ? '-o \$\@' : '')
+                 . '/;');
        $output_rules .= &file_contents_with_transform ($xform, 'compile');
 
        &push_phony_cleaners ('compile');
index 6e9f92a216b95b297971701324ec46feec2e378c..8c755f78b65a70fbc66ab0f721b41b69981c76c9 100644 (file)
@@ -1,5 +1,5 @@
 ## automake - create Makefile.in from Makefile.am
-## Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+## Copyright (C) 1994, 1995-98, 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
 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 ## 02111-1307, USA.
 NOTDEPEND.c.o:
-NOTDEPEND      $(COMPILE) -c $<
+NOTDEPEND      $(COMPILE) -c@MINUSO@ $<
 
 OBJEXT# FIXME: We should only use cygpath when building on Windows,
 OBJEXT# and only if it is available.
 OBJEXT.c.obj:
-OBJEXT $(COMPILE) -c `cygpath -w $<`
+OBJEXT $(COMPILE) -c@MINUSO@ `cygpath -w $<`
 
 .s.o:
        $(COMPILE) -c $<
index 6e9f92a216b95b297971701324ec46feec2e378c..8c755f78b65a70fbc66ab0f721b41b69981c76c9 100644 (file)
@@ -1,5 +1,5 @@
 ## automake - create Makefile.in from Makefile.am
-## Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+## Copyright (C) 1994, 1995-98, 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
 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 ## 02111-1307, USA.
 NOTDEPEND.c.o:
-NOTDEPEND      $(COMPILE) -c $<
+NOTDEPEND      $(COMPILE) -c@MINUSO@ $<
 
 OBJEXT# FIXME: We should only use cygpath when building on Windows,
 OBJEXT# and only if it is available.
 OBJEXT.c.obj:
-OBJEXT $(COMPILE) -c `cygpath -w $<`
+OBJEXT $(COMPILE) -c@MINUSO@ `cygpath -w $<`
 
 .s.o:
        $(COMPILE) -c $<