Front-End-Makefile.html 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1988-2017 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with the
  7. Invariant Sections being "Funding Free Software", the Front-Cover
  8. Texts being (a) (see below), and with the Back-Cover Texts being (b)
  9. (see below). A copy of the license is included in the section entitled
  10. "GNU Free Documentation License".
  11. (a) The FSF's Front-Cover Text is:
  12. A GNU Manual
  13. (b) The FSF's Back-Cover Text is:
  14. You have freedom to copy and modify this GNU Manual, like GNU
  15. software. Copies published by the Free Software Foundation raise
  16. funds for GNU development. -->
  17. <!-- Created by GNU Texinfo 5.2, http://www.gnu.org/software/texinfo/ -->
  18. <head>
  19. <title>GNU Compiler Collection (GCC) Internals: Front End Makefile</title>
  20. <meta name="description" content="GNU Compiler Collection (GCC) Internals: Front End Makefile">
  21. <meta name="keywords" content="GNU Compiler Collection (GCC) Internals: Front End Makefile">
  22. <meta name="resource-type" content="document">
  23. <meta name="distribution" content="global">
  24. <meta name="Generator" content="makeinfo">
  25. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  26. <link href="index.html#Top" rel="start" title="Top">
  27. <link href="Option-Index.html#Option-Index" rel="index" title="Option Index">
  28. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  29. <link href="Front-End.html#Front-End" rel="up" title="Front End">
  30. <link href="Back-End.html#Back-End" rel="next" title="Back End">
  31. <link href="Front-End-Config.html#Front-End-Config" rel="prev" title="Front End Config">
  32. <style type="text/css">
  33. <!--
  34. a.summary-letter {text-decoration: none}
  35. blockquote.smallquotation {font-size: smaller}
  36. div.display {margin-left: 3.2em}
  37. div.example {margin-left: 3.2em}
  38. div.indentedblock {margin-left: 3.2em}
  39. div.lisp {margin-left: 3.2em}
  40. div.smalldisplay {margin-left: 3.2em}
  41. div.smallexample {margin-left: 3.2em}
  42. div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
  43. div.smalllisp {margin-left: 3.2em}
  44. kbd {font-style:oblique}
  45. pre.display {font-family: inherit}
  46. pre.format {font-family: inherit}
  47. pre.menu-comment {font-family: serif}
  48. pre.menu-preformatted {font-family: serif}
  49. pre.smalldisplay {font-family: inherit; font-size: smaller}
  50. pre.smallexample {font-size: smaller}
  51. pre.smallformat {font-family: inherit; font-size: smaller}
  52. pre.smalllisp {font-size: smaller}
  53. span.nocodebreak {white-space:nowrap}
  54. span.nolinebreak {white-space:nowrap}
  55. span.roman {font-family:serif; font-weight:normal}
  56. span.sansserif {font-family:sans-serif; font-weight:normal}
  57. ul.no-bullet {list-style: none}
  58. -->
  59. </style>
  60. </head>
  61. <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  62. <a name="Front-End-Makefile"></a>
  63. <div class="header">
  64. <p>
  65. Previous: <a href="Front-End-Config.html#Front-End-Config" accesskey="p" rel="prev">Front End Config</a>, Up: <a href="Front-End.html#Front-End" accesskey="u" rel="up">Front End</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
  66. </div>
  67. <hr>
  68. <a name="The-Front-End-Make_002dlang_002ein-File"></a>
  69. <h4 class="subsubsection">6.3.8.3 The Front End <samp>Make-lang.in</samp> File</h4>
  70. <p>Each language subdirectory contains a <samp>Make-lang.in</samp> file. It contains
  71. targets <code><var>lang</var>.<var>hook</var></code> (where <code><var>lang</var></code> is the
  72. setting of <code>language</code> in <samp>config-lang.in</samp>) for the following
  73. values of <code><var>hook</var></code>, and any other Makefile rules required to
  74. build those targets (which may if necessary use other Makefiles
  75. specified in <code>outputs</code> in <samp>config-lang.in</samp>, although this is
  76. deprecated). It also adds any testsuite targets that can use the
  77. standard rule in <samp>gcc/Makefile.in</samp> to the variable
  78. <code>lang_checks</code>.
  79. </p>
  80. <dl compact="compact">
  81. <dt><code>all.cross</code></dt>
  82. <dt><code>start.encap</code></dt>
  83. <dt><code>rest.encap</code></dt>
  84. <dd><p>FIXME: exactly what goes in each of these targets?
  85. </p></dd>
  86. <dt><code>tags</code></dt>
  87. <dd><p>Build an <code>etags</code> <samp>TAGS</samp> file in the language subdirectory
  88. in the source tree.
  89. </p></dd>
  90. <dt><code>info</code></dt>
  91. <dd><p>Build info documentation for the front end, in the build directory.
  92. This target is only called by &lsquo;<samp>make bootstrap</samp>&rsquo; if a suitable
  93. version of <code>makeinfo</code> is available, so does not need to check
  94. for this, and should fail if an error occurs.
  95. </p></dd>
  96. <dt><code>dvi</code></dt>
  97. <dd><p>Build DVI documentation for the front end, in the build directory.
  98. This should be done using <code>$(TEXI2DVI)</code>, with appropriate
  99. <samp>-I</samp> arguments pointing to directories of included files.
  100. </p></dd>
  101. <dt><code>pdf</code></dt>
  102. <dd><p>Build PDF documentation for the front end, in the build directory.
  103. This should be done using <code>$(TEXI2PDF)</code>, with appropriate
  104. <samp>-I</samp> arguments pointing to directories of included files.
  105. </p></dd>
  106. <dt><code>html</code></dt>
  107. <dd><p>Build HTML documentation for the front end, in the build directory.
  108. </p></dd>
  109. <dt><code>man</code></dt>
  110. <dd><p>Build generated man pages for the front end from Texinfo manuals
  111. (see <a href="Man-Page-Generation.html#Man-Page-Generation">Man Page Generation</a>), in the build directory. This target
  112. is only called if the necessary tools are available, but should ignore
  113. errors so as not to stop the build if errors occur; man pages are
  114. optional and the tools involved may be installed in a broken way.
  115. </p></dd>
  116. <dt><code>install-common</code></dt>
  117. <dd><p>Install everything that is part of the front end, apart from the
  118. compiler executables listed in <code>compilers</code> in
  119. <samp>config-lang.in</samp>.
  120. </p></dd>
  121. <dt><code>install-info</code></dt>
  122. <dd><p>Install info documentation for the front end, if it is present in the
  123. source directory. This target should have dependencies on info files
  124. that should be installed.
  125. </p></dd>
  126. <dt><code>install-man</code></dt>
  127. <dd><p>Install man pages for the front end. This target should ignore
  128. errors.
  129. </p></dd>
  130. <dt><code>install-plugin</code></dt>
  131. <dd><p>Install headers needed for plugins.
  132. </p></dd>
  133. <dt><code>srcextra</code></dt>
  134. <dd><p>Copies its dependencies into the source directory. This generally should
  135. be used for generated files such as Bison output files which are not
  136. version-controlled, but should be included in any release tarballs. This
  137. target will be executed during a bootstrap if
  138. &lsquo;<samp>--enable-generated-files-in-srcdir</samp>&rsquo; was specified as a
  139. <samp>configure</samp> option.
  140. </p></dd>
  141. <dt><code>srcinfo</code></dt>
  142. <dt><code>srcman</code></dt>
  143. <dd><p>Copies its dependencies into the source directory. These targets will be
  144. executed during a bootstrap if &lsquo;<samp>--enable-generated-files-in-srcdir</samp>&rsquo;
  145. was specified as a <samp>configure</samp> option.
  146. </p></dd>
  147. <dt><code>uninstall</code></dt>
  148. <dd><p>Uninstall files installed by installing the compiler. This is
  149. currently documented not to be supported, so the hook need not do
  150. anything.
  151. </p></dd>
  152. <dt><code>mostlyclean</code></dt>
  153. <dt><code>clean</code></dt>
  154. <dt><code>distclean</code></dt>
  155. <dt><code>maintainer-clean</code></dt>
  156. <dd><p>The language parts of the standard GNU
  157. &lsquo;<samp>*clean</samp>&rsquo; targets. See <a href="http://www.gnu.org/prep/standards/html_node/Standard-Targets.html#Standard-Targets">Standard Targets for
  158. Users</a> in <cite>GNU Coding Standards</cite>, for details of the standard
  159. targets. For GCC, <code>maintainer-clean</code> should delete
  160. all generated files in the source directory that are not version-controlled,
  161. but should not delete anything that is.
  162. </p></dd>
  163. </dl>
  164. <p><samp>Make-lang.in</samp> must also define a variable <code><var>lang</var>_OBJS</code>
  165. to a list of host object files that are used by that language.
  166. </p>
  167. <hr>
  168. <div class="header">
  169. <p>
  170. Previous: <a href="Front-End-Config.html#Front-End-Config" accesskey="p" rel="prev">Front End Config</a>, Up: <a href="Front-End.html#Front-End" accesskey="u" rel="up">Front End</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
  171. </div>
  172. </body>
  173. </html>