# %W% %G%

This directory contains the C code for the Motif daemon and the Motif server.
We have tested it on Sun Sparcstations under SunOS 4.1, X11R4 and
OSF/Motif 1.0.3 and 1.1.3. However, the code is supposed to run on a
number of other platforms.

To compile and test the Motif daemon and server, the following steps are 
necessary:

1. Adapt the variables in the Makefile to your installation:

   First, set the ARCH variable on top of the Makefile to your system
   architecture. See what files Makefile.<ARCH> are supplied. These files
   set variables that are different on different architectures. They can
   also be used if you have to support multiple architectures on your site.
   If you only need one architecture, you can also set the site-specific
   definitions in the main Makefile.

   The following variables are set to default values in the Makefile and
   can be overridden in the architecture-specific Makefile. You can set them
   in either location, depending on whether the parameter is constant for
   all architectures at your site or depends on the architecture.

   XM_INCLUDE:  -I Directory where the Motif include files are stored.
   LIB_PATH:    -L Directory where the Motif libraries are stored.

   ADD_CFLAGS:  any flags that should be added to every C compilation
   LISP_CFLAGS: any flags that should be added when compiling the foreign
                C functions to be loaded into Lisp
   ADD_LFLAGS:  any flags to be added for loader operation
   ADD_LIBS:    any libraries that need to be linked for Motif (e.g. -lPW)

   When compiling for Allegro CL, the variable EXCL_INCLUDE must be set to the
   directory where the include file misc/lisp.h is stored. This is supplied by 
   Franz Inc.

   The following variables are usually site-specific, but in principle they
   can also be set in architecture-specific files.

   CLM_LIB: Directory where the foreign C modules are installed. This must be
	    the same path as CLM_LIB in ../lisp/Makefile and ../demos/Makefile.
   CLM_BIN: Directory where the Motif daemon and server executables are 
	    installed.

   When you're NOT using Allegro CL, the definition for LISP_OBJECTS must
   be commented out.

2. make

3. type 'clm-td ./clm-server &' to start the Motif daemon. The Motif daemon 
   brings up a small window containing a quit button and a kill button.

   Please make sure your DISPLAY variable points to the right display.

4. Go to ../lisp, read README, compile and load the Lisp code and run some
   of the demos in ../demos (especially xclock, xprocesses and clm-test).

5. To install the binaries, type 'make install'

6. To install everything, go to .. and type 'make install'
