Building the library is straight-forward; simple, clear directions are provided with the package. To use the library, you have two options. First, you can just install the Xaw3d files in place of the standard Xaw library and include files. This makes Xaw3d your standard GUI library for Xaw-based programs. I recommend this; it's the easiest method, and you can simulate the original Athena look and feel by setting shadowWidth resources in a resource file:
*shadowWidth: 0
If, however, you need both flavors, you need to install the Xaw3d library separately. In this case, there are two obvious choices:
The problem with modifying Imakefiles is that Athena widget files are usually included like this:
#include <Xaw/Thingie.h>This means your Imakefiles must also modify the #include search path. The INCLUDES variable is intended for just this use.
INCLUDES=/usr/include/X11/Xaw3dI then have a link inside /usr/include/X11/Xaw3d for Xaw/ pointing to its parent (..).
To link, then, you can just redefine XawClientLibs (check the XawClientLibs definition for your system).
#define XawClientLibs -lXaw3d -lXmu -lXt -lX11 -lXext