8.51 --depend_single_line, --no_depend_single_line

Specifies the format of the makefile dependency lines output by the compiler.

--depend_single_line instructs the compiler to format the makefile with one dependency line for each compilation unit. The compiler wraps long lines to improve readability.

--no_depend_single_line instructs the compiler to format the makefile with one line for each include file or source file.

Default

The default is --no_depend_single_line.

Examples

/* hello.c */
#include <stdio.h>
int main(void)
{
    printf("Hello, world!\n");
    return 0;
}

Compiling this code with armcc hello.c -M --depend_single_line produces:

__image.axf: hello.c ...\include\...\stdio.h

Compiling this code with armcc hello.c -M --no_depend_single_line produces:

__image.axf: hello.c
__image.axf: ...\include\...\stdio.h
Related reference
8.48 --depend=filename
8.50 --depend_format=string
8.53 --depend_target=target
8.99 --ignore_missing_headers
8.127 -M
8.128 --md
8.151 --phony_targets
Non-ConfidentialPDF file icon PDF versionARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.