Windows NT/95/98:
For all MS Windows platforms you have to apply a patch-file. You can get this patch from the Tycoon-2 distribution on the directory contrib/Jam-2.2/STSNotes.
This patch performs following changes on the original Jam sources:
If you use MS Visual C++, you have to set the MSVCNT environment variable (see JAM readme). This variable contains the path to the C compiler:
SET MSVCNT=F:\Lang\DevStudio\VC
In the Tycoon-2 distribution this will be done automaticly by the tools/win32/def_tl2.bat batchfile. But there is a problem (for Jam), if the path to the C compiler contains spaces, e.g.:
SET MSVCNT="C:\Program Files\DevStudio\VC"
This donīt work well with Jam, so you have to do somewhat like that:
SUBST Y: "C:\Program Files\DevStudio" SET MSVCNT=Y:\VC
Note, that for compiling Jam with MS Visual C++ you have to set further environment variables, defined in VCVARS32.BAT (in the MS Visual binary path).
First at all, you have to compile Jam with make (or nmake on MS Windows). If you already have a Jam executable, you can compile Jam with itīs self (there is a Jamfile on the Jam sources, that describes how to compile Jam). Depending on your current platform, you can perform the initial compile of jam with the following Makefiles:
| System | Calling make | Binary directory |
| Linux | make | bin.linuxx86 |
| Windows NT | nmake -f makefile.nt | bin.winntx86 |
| Windows 95 | nmake -f makefile.w95 | bin.win95x86 |
| Windows 98 | nmake -f makefile.w98 | bin.win98x86 |
For other Unix systems do the same as for Linux. The compiled jam executable in the binary directory can be copied into a directory in your path. Only this file ist needed for working with Jam (the Jambase is builtin).
On all Windows platforms two additional tools are needed for working with Jam: rm.exe and touch.exe, which can be either retrieved from the MS Windows NT Resource Kit, or from the Cygnus GNU Tools for Win32. If you perform further modifications on the Jam sources, you also need diff.exe and patch.exe from the Cygnus GNU Tools for Win32. You can find all needed files in the Tycoon-2 distribution at the directory contrib/Win32.
On the directory contrib/Jam-2.2/STSNotes there are two samples: Sample01, for building a simple main program, and Sample02 for building a main program with a library. For better samples for Jam with building dynamic link libraries, take a look to the sources of the Tycoon-2 distribution. For further information for using Jam look at the Jamming mailing list on Perforce Software
Andre Willomat (MAY/31/99). Your feedback is welcome!