This directory contains templates for creating a
.cm file along with the makefiles.

For each .cm file a directory must be created. The directory
must have the same name as the .cm file for which it stands. This
directory contains all sources neccesary to build a .cm file.
Each subdirectory of this directory contains a description of one 
code model or UDN. All code models of a .cm file must be listed in 
the modpath.lst file. All UDNs must be listed in the udnpath.lst. 
To add a description, a copyright notice and other stuff to a .cm 
file, edit the file dlinfo.h. dlmain.c is linked with other objects 
created during the build process to produce a .cm file. Don't touch
this file. Edit the file makedefs and list all code models and UDNs
in it. For one code model/UDN a .lib file will be created. These .lib 
files
 will be linked together with the dlmain.obj to produce a .cm file.

Then edit the file makedefs in the top directory and list all .cm 
files and their directories in it.

To set up the whereabouts of tools that are needed for the build,
edit the file makeops.xxx. If you want to build debug versions
of .cm files, edit the makeops.xxx file. Generally you need the
cmpp preprocessor (shipped with SPICE OPUS), a c compiler, make 
utility and the include files (provided with this package).

makeops.win is used for WIN32 build. The provided makefiles were 
tested using the c compiler/nmake combination from Microsoft 
Developer Studio 6.0. SPICE OPUS was built using these tools.

makeops.lin is used for linux builds. Linux folks should know the
basics of make and gcc so there is no detailed expalanation provided.

Enter the top level directory.
To start a WIN32 build type
	nmake winclean
	nmake win

For a Linux build type:
	make linuxclean
	make linux
	
For a Solaris build type:
	gake solarisclean
	gake solaris
	
For a separate build of only one .cm file, enter its directory and
type:

for WIN32
	nmake /f Makefile.win clean
	nmake /f Makefile.win all

for Linux
	make -f Makefile.lin clean
	make -f Makefile.lin all

for Solaris
	gmake -f Makefile.lin clean
	gmake -f Makefile.lin all

.cm files can be loaded using the cmload command. See the lib/scripts/spinit
for an example. The cmload command first looks for the .cm file in the
spice lib/cm directory, then in the default .dll search path and finally
in the current directory. 
Information about the simulator can be displayed using the siminfo command. 
