source: trunk/third/rx/BUILDING @ 10430

Revision 10430, 4.0 KB checked in by ghudson, 27 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r10429, which included commits to RCS files with non-trunk default branches.
Line 
1      Generic Instructions for Building Auto-Configured Packages
2      ==========================================================
3
4
5To compile this package:
6
71.  Configure the package for your system.  In the directory that this
8file is in, type `./configure'.  If you're using `csh' on an old
9version of System V, you might need to type `sh configure' instead to
10prevent `csh' from trying to execute `configure' itself.
11
12The `configure' shell script attempts to guess correct values for
13various system-dependent variables used during compilation, and
14creates the Makefile(s) (one in each subdirectory of the source
15directory).  In some packages it creates a C header file containing
16system-dependent definitions.  It also creates a file `config.status'
17that you can run in the future to recreate the current configuration.
18Running `configure' takes a minute or two.
19
20To compile the package in a different directory from the one
21containing the source code, you must use GNU make.  `cd' to the
22directory where you want the object files and executables to go and
23run `configure' with the option `--srcdir=DIR', where DIR is the
24directory that contains the source code.  Using this option is
25actually unnecessary if the source code is in the parent directory of
26the one in which you are compiling; `configure' automatically checks
27for the source code in `..' if it does not find it in the current
28directory.
29
30By default, `make install' will install the package's files in
31/usr/local/bin, /usr/local/lib, /usr/local/man, etc.  You can specify
32an installation prefix other than /usr/local by giving `configure' the
33option `--prefix=PATH'.  Alternately, you can do so by changing the
34`prefix' variable in the Makefile that `configure' creates (the
35Makefile in the top-level directory, if the package contains
36subdirectories).
37
38You can specify separate installation prefixes for machine-specific
39files and machine-independent files.  If you give `configure' the
40option `--exec_prefix=PATH', the package will use PATH as the prefix
41for installing programs and libraries.  Normally, all files are
42installed using the same prefix.
43
44`configure' ignores any other arguments that you give it.
45
46If your system requires unusual options for compilation or linking
47that `configure' doesn't know about, you can give `configure' initial
48values for some variables by setting them in the environment.  In
49Bourne-compatible shells, you can do that on the command line like
50this:
51        CC='gcc -traditional' DEFS=-D_POSIX_SOURCE ./configure
52
53The `make' variables that you might want to override with environment
54variables when running `configure' are:
55
56(For these variables, any value given in the environment overrides the
57value that `configure' would choose:)
58CC              C compiler program.
59                Default is `cc', or `gcc' if `gcc' is in your PATH.
60INSTALL         Program to use to install files.
61                Default is `install' if you have it, `cp' otherwise.
62INCLUDEDIR      Directory for `configure' to search for include files.
63                Default is /usr/include.
64
65(For these variables, any value given in the environment is added to
66the value that `configure' chooses:)
67DEFS            Configuration options, in the form '-Dfoo -Dbar ...'
68LIBS            Libraries to link with, in the form '-lfoo -lbar ...'
69
70If you need to do unusual things to compile the package, we encourage
71you to teach `configure' how to do them and mail the diffs to the
72address given in the README so we can include them in the next
73release.
74
752.  Type `make' to compile the package.
76
773.  Type `make install' to install programs, data files, and
78documentation.
79
804.  You can remove the program binaries and object files from the
81source directory by typing `make clean'.  To also remove the
82Makefile(s), the header file containing system-dependent definitions
83(if the package uses one), and `config.status' (all the files that
84`configure' created), type `make distclean'.
85
86The file `configure.in' is used as a template to create `configure' by
87a program called `autoconf'.  You will only need it if you want to
88regenerate `configure' using a newer version of `autoconf'.
Note: See TracBrowser for help on using the repository browser.