Next: , Previous: , Up: Building Programs and Libraries   [Contents][Index]


7.10 Assembly Support

Automake includes some support for assembly code.

The variable 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 ‘-c’ and ‘-o’. The values of CCASFLAGS and AM_CCASFLAGS (or its per-target definition) are passed to the compilation.

The autoconf macro AM_PROG_AS will define CCAS and CCASFLAGS for you (unless they are already set, it simply sets CCAS to the C compiler and CCASFLAGS to the C compiler flags), but you are free to define these variables by other means.

Only the suffixes ‘.s’ and ‘.S’ are recognized by automake as being files containing assembly code.