68
68
to be an error if the module name in the source code is
69
69
not the same as the basename of the output file.</p>
71
<p>Here follows first all elements of <c>Options</c> that in
71
<p><marker id="type-option"/>Here follows first all elements of <c>Options</c> that in
72
72
some way control the behavior of the compiler.</p>
74
74
<tag><c>basic_validation</c></tag>
167
<tag><c>makedep</c></tag>
169
<p>Produce a Makefile rule to track headers dependencies.
170
No object file is produced.
172
<p>By default, this rule is written to
173
<c><![CDATA[<File>.Pbeam]]></c>. However, if the option
174
<c>binary</c> is set, nothing is written and the rule is
175
returned in <c>Binary</c>.
177
<p>For instance, if one has the following module:
182
-include_lib("eunit/include/eunit.hrl").
183
-include("header.hrl").
185
<p>Here is the Makefile rule generated by this option:
188
module.beam: module.erl \
189
/usr/local/lib/erlang/lib/eunit/include/eunit.hrl \
194
<tag><c>{makedep_output, Output}</c></tag>
196
<p>Write generated rule(s) to <c>Output</c> instead of the
197
default <c><![CDATA[<File>.Pbeam]]></c>. <c>Output</c>
198
can be a filename or an <c>io_device()</c>. To write to
199
stdout, use <c>standard_io</c>. However if <c>binary</c>
200
is set, nothing is written to <c>Output</c> and the
201
result is returned to the caller with
202
<c>{ok, ModuleName, Binary}</c>.
206
<tag><c>{makedep_target, Target}</c></tag>
208
<p>Change the name of the rule emitted to <c>Target</c>.
212
<tag><c>makedep_quote_target</c></tag>
214
<p>Characters in <c>Target</c> special to make(1) are quoted.
218
<tag><c>makedep_add_missing</c></tag>
220
<p>Consider missing headers as generated files and add them to the
225
<tag><c>makedep_phony</c></tag>
227
<p>Add a phony target for each dependency.
167
231
<tag><c>'P'</c></tag>
169
233
<p>Produces a listing of the parsed code after preprocessing
331
395
<code>-compile({no_auto_import,[error/1]}).</code>
398
<tag><c>no_line_info</c></tag>
401
<p>Omit line number information in order to produce a slightly
336
408
<p>If warnings are turned on (the <c>report_warnings</c> option