7.39 --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 \.
unix_escaped
On Windows systems, --depend_format=unix_escaped forces UNIX-style path names, and escapes spaces with \.
unix_quoted
On Windows systems, --depend_format=unix_quoted forces UNIX-style path names and surrounds them with "".

Default

If you do not specify a --depend_format option, then the format of output dependency files is either Windows-style paths or UNIX-style paths, whichever is given.

Example

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.37 --depend=filename
7.41 --depend_system_headers, --no_depend_system_headers
7.42 --depend_target=target
7.81 --ignore_missing_headers
7.109 -M
7.110 --md
7.134 --phony_targets
Non-ConfidentialPDF file icon PDF versionARM DUI0375F
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.