After writing a widget, you will need to test it by instantiating it from a Motif application. Motif provides two mechanisms for generating applications:
It is very easy to make your new widget accessible to C applications. All you have to do is compile your widget's source code file. The resulting object file can be bound to Motif applications. You do not have to place the object file into libXm.a.
If you have written several related widgets, then we suggest bundling the resulting object files into an archive file (a library).
From a Motif application programmer's point of view, it is very easy to access the new widget. Application programmers need to do only the following three things:
#include <Exm/Simple.h>
The Motif directory demos/programs/Exm/simple_app contains a short C application that exercises the ExmSimple widget. This directory also contains an Imakefile for building the ExmSimple widget and the application.