8.55 --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.

Example

/* 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
Non-ConfidentialPDF file icon PDF versionARM DUI0472M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.