]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/doc/gccint/makefile-fragments.rst
sphinx: add missing trailing newline
[thirdparty/gcc.git] / gcc / doc / gccint / makefile-fragments.rst
CommitLineData
c63539ff
ML
1..
2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
5
6.. index:: makefile fragment
7
8.. _fragments:
9
10Makefile Fragments
11------------------
12
13When you configure GCC using the :samp:`configure` script, it will
14construct the file :samp:`Makefile` from the template file
15:samp:`Makefile.in`. When it does this, it can incorporate makefile
16fragments from the :samp:`config` directory. These are used to set
17Makefile parameters that are not amenable to being calculated by
18autoconf. The list of fragments to incorporate is set by
19:samp:`config.gcc` (and occasionally :samp:`config.build`
20and :samp:`config.host`); See :ref:`system-config`.
21
22Fragments are named either :samp:`t-{target}` or :samp:`x-{host}`,
23depending on whether they are relevant to configuring GCC to produce
24code for a particular target, or to configuring GCC to run on a
25particular host. Here :samp:`{target}` and :samp:`{host}` are mnemonics
26which usually have some relationship to the canonical system name, but
27no formal connection.
28
29If these files do not exist, it means nothing needs to be added for a
30given target or host. Most targets need a few :samp:`t-{target}`
31fragments, but needing :samp:`x-{host}` fragments is rare.
32
33.. toctree::
34 :maxdepth: 2
35
36 target-makefile-fragments
3ed1b4ce 37 host-makefile-fragments