1 | $Id: HowToBuild.txt 2423 2005-10-17 19:23:45Z bird $
|
---|
2 |
|
---|
3 | Tree Preparation
|
---|
4 | -----------------
|
---|
5 |
|
---|
6 | 1. Check out the tree / Unpack the source and tools zip into an empty tree
|
---|
7 | It is possible to use the netlabs CVS for src/emx.
|
---|
8 | 2. Prepare the tools:
|
---|
9 | a) From tools/ directory and do:
|
---|
10 | unzip packages/*.zip
|
---|
11 | b) Copy / unzip the gcc installation to tools/x86.os2/gcc/.
|
---|
12 | c) Rename tools/x86.os2/gcc/usr to tools/x86.os2/gcc/staged.
|
---|
13 | d) Execute tools/x86.os2/gcc/staged/lib/MakeOmfLibs.cmd.
|
---|
14 | 3. Setup the environment: tools/env.cmd
|
---|
15 |
|
---|
16 |
|
---|
17 |
|
---|
18 | Building
|
---|
19 | --------
|
---|
20 |
|
---|
21 | Make sure you have setup up the environment, see 3. above.
|
---|
22 |
|
---|
23 | Use 'make' from the root directory to build things. The default target
|
---|
24 | is called 'quick' and will to a quick build of everything assuming that
|
---|
25 | gcc and libs level is pretty much the same as the one you're building.
|
---|
26 |
|
---|
27 | When doing this kind of build, we install the subcomponent as they are
|
---|
28 | built into 'obj/OS2/DEBUG/builtunix' and uses them for the building the
|
---|
29 | rest. The builtunix directory is at the head of all paths setup by the
|
---|
30 | env.cmd script.
|
---|
31 |
|
---|
32 | When everything has been built, it is installed into
|
---|
33 | bin/OS2/DEBUG/3.3.5-beta5/ (or whatever the release is set to).
|
---|
34 |
|
---|
35 |
|
---|
36 | Other common targets are:
|
---|
37 | 'double-quick' - used for releases. do two cycles of 'quick'.
|
---|
38 | 'emx' - builds emx
|
---|
39 | 'emx-quick-libs' - libraries
|
---|
40 | 'emx-quick-libs-install' - installs into builtunix
|
---|
41 | 'emx-quick-rest' - toolchain
|
---|
42 | 'emx-quick-rest-install' - installs into builtunix
|
---|
43 | 'binutils-quick' - builds binutils
|
---|
44 | 'binutils-quick-installstage' - installs into builtunix
|
---|
45 | 'gcc-quick' - builds gcc
|
---|
46 | 'gcc-quick-installstage' - installs into builtunix
|
---|
47 | 'gcc' - bootstraps gcc (might be broken)
|
---|
48 |
|
---|
49 | See Makefile for full reference on these and other targets.
|
---|
50 |
|
---|