--depend_format=string
Specifies the format of output dependency files, for compatibility with some UNIX make programs.
Syntax
--depend_format=
string
Where
is one of:string
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
.
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