Mastering C++: A Comprehensive Quiz Based on 'Thinking in C++

Question: 1 / 565

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

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.

Get further explanation with Examzify DeepDiveBeta

Automatically generates documentation for the project

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy