]> sourceware.org Git - automake.git/commitdiff
Fix for PR automake/132:
authorTom Tromey <tromey@redhat.com>
Sun, 6 May 2001 23:01:34 +0000 (23:01 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 6 May 2001 23:01:34 +0000 (23:01 +0000)
* automake.in (c, c++, objc, asm, ppf77): Add DEFAULT_INCLUDES to
compilation.
(java): Remove INCLUDES and DEFS from compilation.
(lang_c_finish): Add DEFAULT_INCLUDES to compilation.
* compile.am (DEFS): Don't include %DEFAULT_INCLUDES%.
(DEFAULT_INCLUDES): New macro.

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

index fa77c238fa267283a4b5d4d93698af7cbb7a8b70..ff9d01cfb4fbc59e6a58098341bf4fdc7f337b9a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2001-05-06  Tom Tromey  <tromey@redhat.com>
 
+       Fix for PR automake/132:
+       * automake.in (c, c++, objc, asm, ppf77): Add DEFAULT_INCLUDES to
+       compilation.
+       (java): Remove INCLUDES and DEFS from compilation.
+       (lang_c_finish): Add DEFAULT_INCLUDES to compilation.
+       * compile.am (DEFS): Don't include %DEFAULT_INCLUDES%.
+       (DEFAULT_INCLUDES): New macro.
+
        * automake.in (usage): Re-align explanatory text.
        Fixes PR automake/148.
 
index fc0e828072a3581e27275f35e674dc0e75500a16..cc803ccfa281e5e48ed9447eb285d9d8a08b2df0 100755 (executable)
@@ -752,7 +752,7 @@ register_language ('name' => 'c',
                   'ansi' => 1,
                   'autodep' => '',
                   'flags' => 'CFLAGS',
-                  'compile' => '$(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)',
+                  'compile' => '$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)',
                   'compiler' => 'COMPILE',
                   'output_arg' => '-c',
                   'extensions' => ['c'],
@@ -761,7 +761,7 @@ register_language ('name' => 'cxx',
                   'linker' => 'CXXLINK',
                   'autodep' => 'CXX',
                   'flags' => 'CXXFLAGS',
-                   'compile' => '$(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)',
+                   'compile' => '$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)',
                   'compiler' => 'CXXCOMPILE',
                   'output_arg' => '-c -o $@',
                   'pure' => 1,
@@ -771,7 +771,7 @@ register_language ('name' => 'objc',
                   'linker' => 'OBJCLINK',
                   'autodep' => 'OBJC',
                   'flags' => 'OBJCFLAGS',
-                  'compile' => '$(OBJC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_OBJCFLAGS) $(OBJCFLAGS)',
+                  'compile' => '$(OBJC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_OBJCFLAGS) $(OBJCFLAGS)',
                   'compiler' => 'OBJCCOMPILE',
                   'output_arg' => '-c -o $@',
                   'pure' => 1,
@@ -805,7 +805,7 @@ register_language ('name' => 'lexxx',
 register_language ('name' => 'asm',
                   'flags' => 'CFLAGS',
                   # FIXME: asmflags?
-                  'compile' => '$(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)',
+                  'compile' => '$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)',
                   # FIXME: a different compiler?
                   'compiler' => 'COMPILE',
                   'output_arg' => '-c',
@@ -825,7 +825,7 @@ register_language ('name' => 'f77',
 register_language ('name' => 'ppf77',
                   'linker' => 'F77LINK',
                   'flags' => 'FFLAGS',
-                  'compile' => '$(F77) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FFLAGS) $(FFLAGS)',
+                  'compile' => '$(F77) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_FFLAGS) $(FFLAGS)',
                   'compiler' => 'PPF77COMPILE',
                   'output_arg' => '-c -o $@',
                   'pure' => 1,
@@ -846,7 +846,7 @@ register_language ('name' => 'ratfor',
 register_language ('name' => 'java',
                   'linker' => 'GCJLINK',
                   'flags' => 'GCJFLAGS',
-                  'compile' => '$(GCJ) $(DEFS) $(INCLUDES) $(AM_GCJFLAGS) $(GCJFLAGS)',
+                  'compile' => '$(GCJ) $(AM_GCJFLAGS) $(GCJFLAGS)',
                   'compiler' => 'GCJCOMPILE',
                   'output_arg' => '-c -o $@',
                   'pure' => 1,
@@ -4992,7 +4992,7 @@ sub lang_c_finish
            # we can't use $< -- some makes only define $< during a
            # suffix rule.
            $output_rules .= ($base . "_.c: $base.c \$(ANSI2KNR)\n\t"
-                             . '$(CPP) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) '
+                             . '$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) '
                              . '`if test -f $(srcdir)/' . $base . '.c'
                              . '; then echo $(srcdir)/' . $base . '.c'
                              . '; else echo ' . $base . '.c; fi` '
@@ -5171,7 +5171,7 @@ sub lang_f77_finish
 # Preprocessed Fortran 77
 #
 # The current support for preprocessing Fortran 77 just involves passing
-# `$(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)' as additional flags
+# `$(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)' as additional flags
 # to the Fortran 77 compiler, since this is how GNU Make does it; see
 # the `GNU Make Manual, Edition 0.51 for `make' Version 3.76 Beta'
 # (specifically, from info file `(make)Catalogue of Rules').
index 6f6909eb85ee19500d36c02d1622d0aef97b712f..63b3d474dfd814c6f921d60d512e9d5b63404cb8 100644 (file)
@@ -17,7 +17,8 @@
 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 ## 02111-1307, USA.
 
-DEFS = @DEFS@%DEFAULT_INCLUDES%
+DEFS = @DEFS@
+DEFAULT_INCLUDES = %DEFAULT_INCLUDES%
 CPPFLAGS = @CPPFLAGS@
 LDFLAGS = @LDFLAGS@
 LIBS = @LIBS@
index 6f6909eb85ee19500d36c02d1622d0aef97b712f..63b3d474dfd814c6f921d60d512e9d5b63404cb8 100644 (file)
@@ -17,7 +17,8 @@
 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 ## 02111-1307, USA.
 
-DEFS = @DEFS@%DEFAULT_INCLUDES%
+DEFS = @DEFS@
+DEFAULT_INCLUDES = %DEFAULT_INCLUDES%
 CPPFLAGS = @CPPFLAGS@
 LDFLAGS = @LDFLAGS@
 LIBS = @LIBS@
This page took 0.052123 seconds and 5 git commands to generate.