
Installing and Building the Xm++/CommonInteract2 Distribution
=============================================================

System requirements:
--------------------

Disk space:
depends on operating system, compiler and options i.e. on a SUN Sparc
using CC
2690    dlgedit
90      doc
1483    lib
10744   samples
(about 15MB total)

using g++
4009    /dlgedit
90      /doc
3576    /lib
21033   /samples   (-g option used, statically linked binaries)
(about 30MB total)

Installed software:

AT&T standard CC release 2.1 or later or
gnu c++ compiler version 2.3.3 or later *)
X11R4 or X11R5 includes and libraries

at least one of:
Motif 1.1.2 (and above) includes and libraries
Xaw 4.00 (and above) includes and libraries **)

*)  Caution: if you are using g++ you are subject to some restrictions,
    see the README.GNU file in this directory!
**) Xm++ also runs with other releases of Xaw and Xaw3d (which I tested
    under Linux)


Building...
-----------

Libraries

* cd to .../Xm++/lib
* link Makefile.XXX.YY to Makefile (.XXX is one of HP, SUN, or LINUX,
  .YY is one of CC or g++)
* edit the Makefile variables if necessary
* type make (or 'make xmlibs' or 'make awlibs' if you want to build
  for one environment only)
* if you want (and have appropriate permissions) copy all .a files
  to your preferred lib directory (/lib, /usr/lib, /usr/local/lib)


Dialog Editor

* cd to .../Xm++/dlgedit
* link Makefile.XXX to Makefile (.XXX is one of HP, SUN, or LINUX)
* edit the Makefile variables if necessary, be sure to use the same
  compiler as for the library
* type make (or 'make xmdlg' or 'make awdlg' if you want to build
  for one environment only)
* if you want (and have appropriate permissions) copy the executable(s)
  to your preferred bin directory (/usr/bin, /usr/local/bin, ~/bin)


Samples

* cd to .../Xm++/samples
* link Makefile.XXX to Makefile (.XXX is one of HP, SUN, or LINUX)
* edit the Makefile variables if necessary, be sure to use the same
  compiler as for the library
* type make (or 'make xmsamples' or 'make awsamples' if you want to build
  for one environment only)
* run them and look at the source code


Notes for other platforms
-------------------------
(thanks to all of you who mailed me!)

SGI:  (running 4.0.5 and uses g++ 2.3.3)
  in .../lib, use  the HP makefile and add the -cckr flag to the cc
  compiler options if you want to use SGI's cc instead of gcc.
  in .../dlgedit and .../samples again use the HP makefile
