The GateD makefile system is set up to allow object directories for
multiple architectures to use one source tree. The object directories consist
of a few configured files and symlinks for the majority of the GateD files.
They are named obj.<arch> where arch is the architecture of your
system as reported by the arch or machine program. If one of these programs
can not be found, the first part of your hostname is used. See src/util/archtype
for more information.
1. Create an object directory of the forms of:
/src/obj.<architecture type>
2. You can use archtype utility to display the system architecture:
/src/util/archtype
3. mkdir command example:
mkdir src/obj.`src/util/archtype`
If you will never compile GateD on a second architecture, you can use obj. For example, on a Sun SPARCstation running SunOS 4.1.1:
sun% src/util/archtype SunOS-4.1.4-sun4 sun% mkdir src/obj.`src/util/archtype` sun% ls -d src/obj.* src/obj.SunOS-4.1.4-sun4/
On BSD 4.3 Reno and later obj directories are supported in the
format which the system sources use. This support is not direct, but a
hack. On these systems you will need to specify the full path to some directories.
For an example, see src/configs/vangogh.
This file is used as input to a configuration script which builds a Makefile and system specific header files.
A description of config file options is available in src/configs/README.
Examples of many a few config files are in src/configs. Pick
the one which is closest to what you want and tailor it to your specific
configuration. Install this config file in the previously created object
directory with the name Config.
make config
This will run an awk script on your obj. `src/util/archtype`/Config
file which builds a sed script. This sed script is used to edit a Makefile
template. The Makefile is then run to configure architecture specific files,
create symbolic links, and dependencies.
make
in the src directory or the object directory.
make install in the src or object directory. Then optionally type
make install-man in the same directory to install the man pages.
Sample config files are in the conf directory and the main page explains
all config options. Install the config file in /etc/gated.conf.
Last updated November 28, 1997
gated@gated.merit.edu