Go to the first, previous, next, last section, table of contents.

Building with the defaults

A default build is one in which the configure defaults are used exclusively. The software is built in the same directory as the source code.

The defaults are as follows (the release is shown as `94q4'):

prefix       /usr/cygnus/progressive-94q4
exec-prefix  /usr/cygnus/progressive-94q4/H-hosttype
                 (we show the hosttype as `sparc-sun-sunos4.1.3')
target       nonexistent by default; cross example shows `m68k-coff'
srcdir       current directory; example shows `/usr/local/src'
objdir       same as srcdir
release      shown on distribution tape (example shows `94q4')

The native and cross examples show a complete walk-through for each type of build. (The only difference is the use of the `--target' option to configure for a cross-development toolkit. We'll use `m68k-coff' as an example for building a cross-development toolkit.) The programs are to be accessible after installation via the symbolic link `/usr/progressive' (see section The Heterogeneous Updateable Toolkit). Builds are shown independently; for an example of a simultaneous build, see section Multiple simultaneous builds.

Native: @let@nonarrowing=@comment

$ cd /usr/local/src
$ ./configure
Configuring for a sparc-sun-sunos4.1.3_U1 host.
...time passes...
$ make all info > ./make.log
...time passes...
$ su        (may need root priviledge to install in `/usr')
# mkdir /usr/cygnus/progressive-94q4
# make install install-info >> ./make.log
# ln -s /usr/cygnus/progressive-94q4 /usr/cygnus/progressive
# ln -s /usr/cygnus/progressive/H-sparc-sun-sunos4.1.3 /usr/progressive
# exit
$ ls /usr/progressive/bin
ar              gcov            objdump
as              gdb             patch
byacc           genclass        ranlib
c++             gperf           sdiff
c++filt         gprof           send-pr
cmp             info            size
diff            install-sid     sparc-sun-sunos4.1.3-gcc
diff3           ld              strings
flex            make            strip
g++             makeinfo        texi2dvi
gasp            nm              texindex
gcc             objcopy         

Cross:

$ cd /usr/local/src
$ ./configure --target=m68k-coff
Configuring for a sparc-sun-sunos4.1.3_U1 host.
...time passes...
$ make all info > ./make.log
...time passes...
$ su        (may need root priviledge to install in `/usr')
# mkdir /usr/cygnus/progressive-94q4
# make install install-info >> ./make.log
# ln -s /usr/cygnus/progressive-94q4 /usr/cygnus/progressive
# ln -s /usr/cygnus/progressive/H-sparc-sun-sunos4.1.3 /usr/progressive
# exit
$ ls /usr/progressive/bin
byacc     install-sid        m68k-coff-gdb      m68k-coff-strip
cmp       m68k-coff-ar       m68k-coff-ld       make
diff      m68k-coff-as       m68k-coff-nm       makeinfo
diff3     m68k-coff-c++      m68k-coff-objcopy  patch
flex      m68k-coff-c++filt  m68k-coff-objdump  sdiff
gcov      m68k-coff-g++      m68k-coff-ranlib   send-pr
genclass  m68k-coff-gasp     m68k-coff-size     texi2dvi
info      m68k-coff-gcc      m68k-coff-strings  texindex

@let@nonarrowing=@relax

In either of the above examples, you must set your PATH to include `/usr/progressive/bin' in order to access the tools easily.


Go to the first, previous, next, last section, table of contents.