7.37 --depend_format=string

Specifies the format of output dependency files, for compatibility with some UNIX make programs.

Syntax

--depend_format=string
Where string is one of:
unix
generate dependency file entries using UNIX-style path separators.
unix_escaped
is the same as unix, but escapes spaces with \.
unix_quoted
is the same as unix, but surrounds path names with double quotes.

Usage

unix
On Windows systems, --depend_format=unix forces the use of UNIX-style path names. That is, the UNIX-style path separator symbol / is used in place of \.
On UNIX systems, --depend_format=unix has no effect.
unix_escaped
On Windows systems, --depend_format=unix_escaped forces UNIX-style path names, and escapes spaces with \.
On UNIX systems, --depend_format=unix_escaped with escapes spaces with \.
unix_quoted
On Windows systems, --depend_format=unix_quoted forces UNIX-style path names and surrounds them with "".
On UNIX systems, --depend_format=unix_quoted surrounds path names with "".

Default

If you do not specify a --depend_format option, then the format of output dependency files depends on your choice of operating system:
Windows
On Windows systems, the default is to use either Windows-style paths or UNIX-style paths, whichever is given.
UNIX
On UNIX systems, the default is --depend_format=unix.

Examples

On a Windows system, compiling a file main.c containing the line:
#include "..\include\header files\common.h"
using the options --depend=depend.txt --depend_format=unix_escaped produces a dependency file depend.txt containing the entries:
main.axf: main.c
main.axf: ../include/header\ files/common.h
Related reference
7.35 --depend=filename
7.39 --depend_system_headers, --no_depend_system_headers
7.40 --depend_target=target
7.74 --ignore_missing_headers
7.101 -M
7.102 --md
7.125 --phony_targets
Non-ConfidentialPDF file icon PDF versionARM DUI0375E
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.