Alternatives
Most modern compilers provide a flag (often -M
) that uses the compiler's own source parser to generate a list of dependencies. This may be preferred to makedepend
because it reduces the likelihood of the dependencies generated being at odds with the compiler's own behaviour.
Since compilers accept different flags for dependency generation, and may behave differently in outputting dependency information, it is desirable to use a wrapper script that can invoke the compiler appropriately (and fall back to makedepend
if necessary). One popular such wrapper script is depcomp, which is distributed with and used by GNU Automake.
Solaris make includes support for dependency tracking that is activated by specifying the "special-function target" .KEEP_STATE
.
Read more about this topic: Makedepend
Famous quotes containing the word alternatives:
“The literal alternatives to [abortion] are suicide, motherhood, and, some would add, madness. Consequently, there is some confusion, discomfort, and cynicism greeting efforts to find or emphasize or identify alternatives to abortion.”
—Connie J. Downey (b. 1934)
“Clearly, society has a tremendous stake in insisting on a womans natural fitness for the career of mother: the alternatives are all too expensive.”
—Ann Oakley (b. 1944)
“The last alternatives they face
Of face, without the life to save,
Being from all salvation weaned
A stag charged both at heel and head:
Who would come back is turned a fiend
Instructed by the fiery dead.”
—Allen Tate (18991979)