Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

3 роки тому
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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-2020 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 6.5, http://www.gnu.org/software/texinfo/ -->
  18. <head>
  19. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  20. <title>Front End Makefile (GNU Compiler Collection (GCC) Internals)</title>
  21. <meta name="description" content="Front End Makefile (GNU Compiler Collection (GCC) Internals)">
  22. <meta name="keywords" content="Front End Makefile (GNU Compiler Collection (GCC) Internals)">
  23. <meta name="resource-type" content="document">
  24. <meta name="distribution" content="global">
  25. <meta name="Generator" content="makeinfo">
  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.indentedblock {margin-right: 0em}
  36. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  37. blockquote.smallquotation {font-size: smaller}
  38. div.display {margin-left: 3.2em}
  39. div.example {margin-left: 3.2em}
  40. div.lisp {margin-left: 3.2em}
  41. div.smalldisplay {margin-left: 3.2em}
  42. div.smallexample {margin-left: 3.2em}
  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.nolinebreak {white-space: nowrap}
  54. span.roman {font-family: initial; font-weight: normal}
  55. span.sansserif {font-family: sans-serif; font-weight: normal}
  56. ul.no-bullet {list-style: none}
  57. -->
  58. </style>
  59. </head>
  60. <body lang="en">
  61. <a name="Front-End-Makefile"></a>
  62. <div class="header">
  63. <p>
  64. 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>
  65. </div>
  66. <hr>
  67. <a name="The-Front-End-Make_002dlang_002ein-File"></a>
  68. <h4 class="subsubsection">6.3.8.3 The Front End <samp>Make-lang.in</samp> File</h4>
  69. <p>Each language subdirectory contains a <samp>Make-lang.in</samp> file. It contains
  70. targets <code><var>lang</var>.<var>hook</var></code> (where <code><var>lang</var></code> is the
  71. setting of <code>language</code> in <samp>config-lang.in</samp>) for the following
  72. values of <code><var>hook</var></code>, and any other Makefile rules required to
  73. build those targets (which may if necessary use other Makefiles
  74. specified in <code>outputs</code> in <samp>config-lang.in</samp>, although this is
  75. deprecated). It also adds any testsuite targets that can use the
  76. standard rule in <samp>gcc/Makefile.in</samp> to the variable
  77. <code>lang_checks</code>.
  78. </p>
  79. <dl compact="compact">
  80. <dt><code>all.cross</code></dt>
  81. <dt><code>start.encap</code></dt>
  82. <dt><code>rest.encap</code></dt>
  83. <dd><p>FIXME: exactly what goes in each of these targets?
  84. </p></dd>
  85. <dt><code>tags</code></dt>
  86. <dd><p>Build an <code>etags</code> <samp>TAGS</samp> file in the language subdirectory
  87. in the source tree.
  88. </p></dd>
  89. <dt><code>info</code></dt>
  90. <dd><p>Build info documentation for the front end, in the build directory.
  91. This target is only called by &lsquo;<samp>make bootstrap</samp>&rsquo; if a suitable
  92. version of <code>makeinfo</code> is available, so does not need to check
  93. for this, and should fail if an error occurs.
  94. </p></dd>
  95. <dt><code>dvi</code></dt>
  96. <dd><p>Build DVI documentation for the front end, in the build directory.
  97. This should be done using <code>$(TEXI2DVI)</code>, with appropriate
  98. <samp>-I</samp> arguments pointing to directories of included files.
  99. </p></dd>
  100. <dt><code>pdf</code></dt>
  101. <dd><p>Build PDF documentation for the front end, in the build directory.
  102. This should be done using <code>$(TEXI2PDF)</code>, with appropriate
  103. <samp>-I</samp> arguments pointing to directories of included files.
  104. </p></dd>
  105. <dt><code>html</code></dt>
  106. <dd><p>Build HTML documentation for the front end, in the build directory.
  107. </p></dd>
  108. <dt><code>man</code></dt>
  109. <dd><p>Build generated man pages for the front end from Texinfo manuals
  110. (see <a href="Man-Page-Generation.html#Man-Page-Generation">Man Page Generation</a>), in the build directory. This target
  111. is only called if the necessary tools are available, but should ignore
  112. errors so as not to stop the build if errors occur; man pages are
  113. optional and the tools involved may be installed in a broken way.
  114. </p></dd>
  115. <dt><code>install-common</code></dt>
  116. <dd><p>Install everything that is part of the front end, apart from the
  117. compiler executables listed in <code>compilers</code> in
  118. <samp>config-lang.in</samp>.
  119. </p></dd>
  120. <dt><code>install-info</code></dt>
  121. <dd><p>Install info documentation for the front end, if it is present in the
  122. source directory. This target should have dependencies on info files
  123. that should be installed.
  124. </p></dd>
  125. <dt><code>install-man</code></dt>
  126. <dd><p>Install man pages for the front end. This target should ignore
  127. errors.
  128. </p></dd>
  129. <dt><code>install-plugin</code></dt>
  130. <dd><p>Install headers needed for plugins.
  131. </p></dd>
  132. <dt><code>srcextra</code></dt>
  133. <dd><p>Copies its dependencies into the source directory. This generally should
  134. be used for generated files such as Bison output files which are not
  135. version-controlled, but should be included in any release tarballs. This
  136. target will be executed during a bootstrap if
  137. &lsquo;<samp>--enable-generated-files-in-srcdir</samp>&rsquo; was specified as a
  138. <samp>configure</samp> option.
  139. </p></dd>
  140. <dt><code>srcinfo</code></dt>
  141. <dt><code>srcman</code></dt>
  142. <dd><p>Copies its dependencies into the source directory. These targets will be
  143. executed during a bootstrap if &lsquo;<samp>--enable-generated-files-in-srcdir</samp>&rsquo;
  144. was specified as a <samp>configure</samp> option.
  145. </p></dd>
  146. <dt><code>uninstall</code></dt>
  147. <dd><p>Uninstall files installed by installing the compiler. This is
  148. currently documented not to be supported, so the hook need not do
  149. anything.
  150. </p></dd>
  151. <dt><code>mostlyclean</code></dt>
  152. <dt><code>clean</code></dt>
  153. <dt><code>distclean</code></dt>
  154. <dt><code>maintainer-clean</code></dt>
  155. <dd><p>The language parts of the standard GNU
  156. &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
  157. Users</a> in <cite>GNU Coding Standards</cite>, for details of the standard
  158. targets. For GCC, <code>maintainer-clean</code> should delete
  159. all generated files in the source directory that are not version-controlled,
  160. but should not delete anything that is.
  161. </p></dd>
  162. </dl>
  163. <p><samp>Make-lang.in</samp> must also define a variable <code><var>lang</var>_OBJS</code>
  164. to a list of host object files that are used by that language.
  165. </p>
  166. <hr>
  167. <div class="header">
  168. <p>
  169. 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>
  170. </div>
  171. </body>
  172. </html>