| |||
| Home > Compiler Command-line Options > --depend_format=string | |||
This option changes the format of output dependency files, for compatibility with some UNIX make programs.
--depend_format=string
Where is
one of:string
unixgenerate dependency file entries using UNIX-style path separators.
unix_escapedis the same as unix, but escapes
spaces with \.
unix_quotedis the same as unix, but surrounds
path names with double quotes.
unixOn 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_escapedOn 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_quotedOn 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 "".
If you do not specify a --depend_format option,
then the format of output dependency files depends on your choice
of operating system:
On Windows systems, the default is to use either Windows-style paths or UNIX-style paths, whichever is given.
On UNIX systems,
the default is --depend_format=unix.
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