Building a tailored SpecTcl |
SpecTcl Home General Information User Guide Programmer's Guide Obtaining and Installing
The files you copied from the $SPECTCLHOME/Skel directory include a Makefile. The Makefile defines the following macros which can be used to make your code system independent:
Symbol | Meaning |
---|---|
OS | The operating system under which the compilation is
being done. On most systems, the uname(1) command will
return the textual value of this macro. The compilation
command used by the Makefile includes a -D$(OS)
which allows #ifdef's on particular system types. The
current likely values are:
|
INSTDIR | The home of the SpecTcl installation tree. The compilation commands all include a -DINSTALLED_IN='"$(INSTDIR)"' which allow you to reference files in the SpecTcl installation directory. SpecTcl uses this to provide a TCL/TK variable called SpecTclHome which contains this information for scripts. |
If you have added modules to your customized version of SpecTcl, be sure to edit Makefile to reflect this. Build your customized version of SpecTcl with the command:
make
If you move your files to another system, you may need to edit this makefile appropriately to be sure that the OS and INSTDIR symbols are correct. Look at the Makefile in that system's ..../Skel directory, or alternatively, if you are using an unodified Makefile, just copy it again.
SpecTcl Home General Information User Guide Programmer's Guide Obtaining and Installing
Last Modified: October 28, 2003 by: fox@nscl.msu.edu
© Copyright NSCL 1999, All rights reserved