Disable ads (and more) with a membership for a one time $2.99 payment
What does the .SUFFIXES directive do in a makefile?
Defines a list of valid file extensions for the project
Specifies files to exclude from compilation
Tells make which file-name extensions have special rules
Automatically generates documentation for the project
The correct answer is: Tells make which file-name extensions have special rules
The .SUFFIXES directive in a makefile is used to indicate to the make tool which file-name extensions have special rules for how they should be compiled or linked. This allows for better organization and control of the build process, as well as the ability to handle files with non-standard extensions. Option A is incorrect because defining file extensions is not the main purpose of this directive. Option B is incorrect because it is used for specifying files to include, not exclude. Option D is incorrect because the .SUFFIXES directive does not have anything to do with generating documentation.