* automake.in (cppasm): Use the dependency tracking more for CCAS.
* doc/automake.texi (Assembly Support): Note that *.S are
preprocessed with CPPFLAGS.
+2004-10-10 Martin Waitz <tali@admingilde.org> (tiny change)
+
+ * m4/as.m4 (AM_PROG_AS): Check dependency tracking mode for CCAS.
+ * automake.in (cppasm): Use the dependency tracking more for CCAS.
+ * doc/automake.texi (Assembly Support): Note that *.S are
+ preprocessed with CPPFLAGS.
+
2004-10-10 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* automake.in (Languages): Split .s (asm) and .S (cppasm) into
overwriting existing files if AM_MAINTAINER_MODE and maintainer-mode
is not enabled.
- - Preprocessed assembler (*.S) compilation now honnor CPPFLAGS,
- AM_CPPFLAGS and per-target _CPPFLAGS, unlike non-preprocessed
- assembler (*.s).
+ - Preprocessed assembler (*.S) compilation now honnors CPPFLAGS,
+ AM_CPPFLAGS and per-target _CPPFLAGS, and supports dependency
+ tracking, unlike non-preprocessed assembler (*.s).
\f
New in 1.9:
Markku Rossi mtr@ngs.fi
Markus F.X.J. Oberhumer k3040e4@wildsau.idv-edu.uni-linz.ac.at
Martin Frydl martin@idoox.com
+Martin Waitz tali@admingilde.org
Mathias Doreille doreille@smr.ch
Matt Leach mleach@cygnus.com
Matthew D. Langston langston@SLAC.Stanford.EDU
'Name' => 'Preprocessed Assembler',
'config_vars' => ['CCAS', 'CCASFLAGS'],
- 'flags' => ['CCASFLAGS','CPPFLAGS'],
+ 'autodep' => 'CCAS',
+ 'flags' => ['CCASFLAGS', 'CPPFLAGS'],
# Users can set AM_ASFLAGS to include DEFS, INCLUDES,
# or anything else required. They can also set CCAS.
'compile' => '$(CCAS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS)',
@node Assembly Support
@section Assembly Support
-Automake includes some support for assembly code.
+Automake includes some support for assembly code. There are two forms
+of assembler files: normal (@file{*.s}) and preprocessed by @code{CPP}
+(@file{*.S}).
The variable @code{CCAS} holds the name of the compiler used to build
assembly code. This compiler must work a bit like a C compiler; in
particular it must accept @samp{-c} and @samp{-o}. The value of
-@code{CCASFLAGS} is passed to the compilation.
+@code{CCASFLAGS} (and @code{CPPFLAGS} for preprocessed files) is passed
+to the compilation.
@vindex CCAS
@vindex CCASFLAGS
+@vindex CPPFLAGS
You are required to set @code{CCAS} and @code{CCASFLAGS} via
@file{configure.ac}. The autoconf macro @code{AM_PROG_AS} will do this
for you. Unless they are already set, it simply sets @code{CCAS} to the
C compiler and @code{CCASFLAGS} to the C compiler flags.
-Only the suffixes @samp{.s} and @samp{.S} are recognized by
+Only the suffixes @file{.s} and @file{.S} are recognized by
@code{automake} as being files containing assembly code.
-@set UPDATED 25 September 2004
-@set UPDATED-MONTH September 2004
+@set UPDATED 10 October 2004
+@set UPDATED-MONTH October 2004
@set EDITION 1.9a
@set VERSION 1.9a
-@set UPDATED 25 September 2004
-@set UPDATED-MONTH September 2004
+@set UPDATED 10 October 2004
+@set UPDATED-MONTH October 2004
@set EDITION 1.9a
@set VERSION 1.9a
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)])
AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
+_AM_DEPENDENCIES([CCAS])
])