[b1f6a9]: README.in Maximize Restore History

Download this file

README.in    180 lines (174 with data), 6.3 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
.ig
README.in for x86-mingw32-build.sh
$Id$

Copyright (C) 2006, 2009, 2010, MinGW Project  <http://www.mingw.org>
Written by Keith Marshall <keithmarshall@users.sourceforge.net>

x86-mingw32-build is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2, or (at your option) any later
version.

x86-mingw32-build is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for further details.

You should have received a copy of the GNU General Public License along
with x86-mingw32-build; see the file COPYING.  If not, write to the Free
Software Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301,
USA.

Process this file with `nroff -Tascii README.in > README`,
to generate the README file.
..
.so README.tmac
.LP
$Id$
.LP
Copyright (C) 2006, 2009, MinGW Project  <http://www.mingw.org>
.LP
The `x86\-mingw32\-build' script will build a cross compiler suite,
hosted on GNU/Linux or UNIX,
and targetting the Win32 platform.
.LP
`x86\-mingw32\-build' is free software;
it is distributed `as is',
in the hope that it may be useful,
but WITHOUT WARRANTY OF ANY KIND;
not even an IMPLIED WARRANTY of MERCHANTABILITY,
nor of FITNESS FOR ANY PARTICULAR PURPOSE.
.LP
`x86\-mingw32\-build' is distributed under the terms of the GNU
General Public License,
Version 2.
You are free to copy,
and to redistribute `x86\-mingw32\-build' under the terms of this license,
or at your option,
any later version thereof;
see the files `LICENSE' and `COPYING' for further information.
.LP
To build a MinGW cross GCC,
using `x86\-mingw32\-build',
you MUST have NATIVE versions of the following tools
installed on the machine where you will perform the build:\(em
.TP 1)
A C compiler.
.TP 2)
A `lex' compatible lexical parser generator,
such as `lex' itself,
or a free alternative such as `flex'.
.TP 3)
A `yacc' compatible grammar parser generator,
preferrably a `yacc' replacement such as `GNU\~bison' or `byacc'.
.TP 4)
An `m4' macro processor,
if it is required by either of the above.
.LP
The cross compiler configuration is defined in the user modifiable file,
`x86\-mingw32\-build.sh.conf'.
You are advised to review this file,
to ensure that the default configuration is suited to your requirements;
use the `assume' directive to supply initial default settings,
and the `option' directive to extend specified lists of configuration options.
.LP
To invoke the build script:\(em
.TP 1)
Unpack the tarball,
into a directory of your choice;
it will create a subdirectory called `x86\-mingw32\-build\-<version>'.
.TP 2)
`cd' to this `x86\-mingw32\-build\-<version>' directory.
.TP 3)
Start the build,
by executing the command:\(en
.QP 4
sh x86\-mingw32\-build.sh [\-\-options ...] [target\-spec]
.LP
Your choice of `target\-spec' defines the class of processor,
and the operating system,
for which your cross compiler will generate code;
it also determines how your cross compiler will eventually be invoked;
e.g.\~if you choose a canonical host triplet,
such as `i586\-pc\-mingw32' then you would invoke `gcc',
say to compile `foo.c',
as:\(en
.QP 4
i586\-pc\-mingw32\-gcc \-c foo.c
.LP
generating object code suitable for deployment on an Intel Pentium class host,
running a 32\-bit MS\-Windows operating system.
.LP
Do note that you cannot make an arbitrary choice for `target-spec';
it MUST represent,
either directly or by inference,
a valid canonical host triplet of the form `CPU\-MAKER\-OSTYPE'.
The minimum requirement is that you specify the `OSTYPE',
and,
since you are building a MinGW compiler tool chain for the Win32 platform,
this MUST be `mingw32'.
Typically,
you would choose a full canonical host triplet,
such as in the example above,
in which the CPU is `i586',
the MAKER is `pc',
(indicating any generic PC of non\-specific manufacture),
and the OSTYPE is the mandatory `mingw32';
alternatively,
you may prefer to use an abbreviated couplet such as `i586\-mingw32'.
If you don't specify any `target\-spec',
it defaults to the couplet `i386\-mingw32',
resulting in a C compiler invoked as:\(en
.QP 4
i386\-mingw32\-gcc \-c foo.c
.LP
and similarly for the remainder of the cross tool chain,
by prefixing `i386\-mingw32\-' to the regular name of each tool;
such a compiler,
and its associated tool chain,
will generate code to run under 32\-bit MS\-Windows,
(the host OS for the `mingw32' OSTYPE),
on all generations of the Intel x86 CPU from i386 onwards.
.LP
Additionally,
there are a number of options available,
to modify the behaviour of `x86\-mingw32\-build';
to see a list,
try:\(en
.QP 4
sh x86\-mingw32\-build.sh \-\-help
.LP
By default,
`x86\-mingw32\-build.sh' runs interactively;
this gives you an opportunity to adjust many of the default parameters,
which have been defined in `x86\-mingw32\-build.sh.conf'.
If you prefer to skip the interactive dialogue,
and simply accept all of the default parameter settings,
you may invoke:\(en
.QP 4
sh x86\-mingw32\-build.sh \-\-unattended [target\-spec]
.LP
`x86\-mingw32\-build' will build the cross compiler from source packages,
with versions as specified in `x86\-mingw32\-build.sh.conf';
if the specified versions are not already present in a directory of your
choice on the local host,
then `x86\-mingw32\-build' will invoke `wget',
to download those package versions.
If run interactively,
you will be given the opportunity to override the packace versions
specified in `x86\-mingw32\-build.sh.conf',
substituting any version which is already present
in your local package directory;
if run unattended,
you may use the `\-\-no\-download' option to prevent downloads;
with this option,
`x86\-mingw32\-build' will expect to find the specified version in the
local download directory,
or,
if the `\-\-use\-latest\-versions' option is specified,
it will automatically substitute the most recent version
which is already present in that directory.
.LP
If you discover any bug in `x86\-mingw32\-build',
please report it by following the procedure described at:\(en
.QP 4
http://www.mingw.org/MinGWiki/index.php/ReportBugs
.LP
$RCSfile$Revision: 1.2 $: end of file
.pl 0