aboutsummaryrefslogtreecommitdiffstats
path: root/doc/nasmdoc.src
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2018-11-28 12:36:53 -0800
committerH. Peter Anvin <hpa@zytor.com>2018-11-28 12:40:58 -0800
commit3475462ee87fdd59af715fa0c28eecc4672466fb (patch)
tree2e95ce2afaeb212e2214170abf19f0d85a09a6b7 /doc/nasmdoc.src
parentc06c87dbb5358b99968fe2348957fca92ae2ef30 (diff)
downloadnasm-3475462ee87fdd59af715fa0c28eecc4672466fb.tar.gz
nasm-3475462ee87fdd59af715fa0c28eecc4672466fb.tar.xz
nasm-3475462ee87fdd59af715fa0c28eecc4672466fb.zip
nasm: fix the combination -E -MD, handle -MD without a filename
-E -MD should work and output a dependency file. -MD can be used without a filename; there is a default filename or -\c{-MF} can be used. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'doc/nasmdoc.src')
-rw-r--r--doc/nasmdoc.src9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src
index ebbd29b3..f1abc507 100644
--- a/doc/nasmdoc.src
+++ b/doc/nasmdoc.src
@@ -496,6 +496,15 @@ updated dependencies with every assembly session. For example:
\c nasm -f elf -o myfile.o -MD myfile.dep myfile.asm
+If the argument after \c{-MD} is an option rather than a filename,
+then the output filename is the first applicable one of:
+
+\b the filename set in the \c{-MF} option;
+
+\b the output filename from the \c{-o} option with \c{.d} appended;
+
+\b the input filename with the extension set to \c{.d}.
+
\S{opt-MT} The \i\c{-MT} Option: Dependency Target Name