19.2 Language support
Automake comes with built-in knowledge of the most common compiled languages: C, C++, Objective C, Yacc, Lex, assembly, and Fortran. However, programs are sometimes written in an unusual language, or in a custom language that is translated into something more common. Automake lets you handle these cases in a natural way.
Automake's notion of a `language' is tied to the suffix appended to
each source file written in that language. You must inform Automake of
each new suffix you introduce. This is done by listing them in the
`SUFFIXES' macro. For instance, suppose you are writing part of
your program in the language `M', which is compiled to object code
by a program named
This differs from ordinary
Now you need to tell Automake (and
Note that we introduced the `MC', `MCFLAGS', and `AM_MCFLAGS' variables. While not required, this is good style in case you want to override any of these later (for instance from the command line).
Automake understands enough about suffix rules to recognize that `.m' files can be treated just like any file it already understands, so now you can write:
Note that Automake does not really understand chained suffix rules;
however, frequently the right thing will happen anyway. For instance,
if you have a