[project @ 2001-03-29 17:56:18 by qrczak]
[ghc-hetmet.git] / ghc / docs / users_guide / utils.sgml
index e9839af..633a779 100644 (file)
@@ -148,7 +148,8 @@ tags:
        </varlistentry>
 
        <varlistentry>
-         <term><literal>--cc=PROG</literal></term>
+         <term><literal>-c PROG</literal> or
+         <literal>--cc=PROG</literal></term>
          <listitem>
            <para>The C compiler to use (default:
            <command>ghc</command>)</para>
@@ -156,7 +157,8 @@ tags:
        </varlistentry>
 
        <varlistentry>
-         <term><literal>--ld=PROG</literal></term>
+         <term><literal>-l PROG</literal> or
+         <literal>--ld=PROG</literal></term>
          <listitem>
            <para>The linker to use (default:
            <command>gcc</command>).</para>
@@ -164,7 +166,8 @@ tags:
        </varlistentry>
 
        <varlistentry>
-         <term><literal>--cflag=FLAG</literal></term>
+         <term><literal>-C FLAG</literal> or
+         <literal>--cflag=FLAG</literal></term>
          <listitem>
            <para>An extra flag to pass to the C compiler.</para>
          </listitem>
@@ -178,14 +181,16 @@ tags:
        </varlistentry>
 
        <varlistentry>
-         <term><literal>--lflag=FLAG</literal></term>
+         <term><literal>-L FLAG</literal> or
+         <literal>--lflag=FLAG</literal></term>
          <listitem>
            <para>An extra flag to pass to the linker.</para>
          </listitem>
        </varlistentry>
 
        <varlistentry>
-         <term><literal>--include=FILE</literal></term>
+         <term><literal>-i FILE</literal> or
+         <literal>--include=FILE</literal></term>
          <listitem>
            <para>As if the appropriate <literal>#include</literal>
             directive was placed in the source.</para>
@@ -193,15 +198,40 @@ tags:
        </varlistentry>
 
        <varlistentry>
+         <term><literal>-D NAME[=VALUE]</literal> or
+         <literal>--define=NAME[=VALUE]</literal></term>
+         <listitem>
+           <para>As if the appropriate <literal>#define</literal>
+            directive was placed in the source.</para>
+         </listitem>
+       </varlistentry>
+
+       <varlistentry>
+         <term><literal>-o FILE</literal> or
+         <literal>--output=FILE</literal></term>
+         <listitem>
+           <para>Name of the Haskell file.</para>
+         </listitem>
+       </varlistentry>
+
+       <varlistentry>
          <term><literal>--help</literal></term>
          <listitem>
            <para>Display a summary of the available flags.</para>
          </listitem>
        </varlistentry>
+
+       <varlistentry>
+         <term><literal>--version</literal></term>
+         <listitem>
+           <para>Output version information.</para>
+         </listitem>
+       </varlistentry>
       </variablelist>
 
-      <para>The input file should end with .hsc. Output files get
-      names with the <literal>.hsc</literal> suffix replaced:</para>
+      <para>The input file should end with .hsc. Output files by
+      default get names with the <literal>.hsc</literal> suffix
+      replaced:</para>
 
       <informaltable>
        <tgroup cols=2>
@@ -211,11 +241,11 @@ tags:
              <entry>Haskell file</entry>
            </row>
            <row>
-             <entry><literal>.hs.h</literal></entry>
+             <entry><literal>_hsc.h</literal></entry>
              <entry>C header</entry>
            </row>
            <row>
-             <entry><literal>.hs.c</literal></entry>
+             <entry><literal>_hsc.c</literal></entry>
              <entry>C file</entry>
            </row>
          </tbody>