			How to compile Twin

					August 23, 1994
					Software Research Associates, Inc.

[1] How to extract.
  Extract the contents of the Twin source file.
	pkunzip -d twinesrc.zip

  Then, you will find six directories under c:\tcltk.
    tcltk\include tcltk\lib tcltk\tcl73 tcltk\tk36 tcltk\wish tcltk\xlib


[2] How to compile the Twin (tcl/tk for MS-Windows)

Before start compiling, choose the library directory
(Where environment variable LIB points) and the command
directory (where environment variable PATH points).

Suppose LIB include c:\tcltk\lib and PATH includes
c:\tcltk\wish here for example.

0. Invoke Microsoft Windows Visual C++ to do the following operation.

1. (add include and library directory to the list)
   Choose [option]-[directory] in menu, put c:\tcltk\include to the include 
   and put c:\tcltk\lib to the library.

2. (build winio.lib)
   Choose [project]-[open], open c:\tcltk\lib\winio.mak and build.

3. (build lxlib.dll and lxlib.lib)
  Choose [project]-[open], open c:\tcltk\xlib\lxlib.mak and build.  
  After building, move lxlib.lib to c:\tcltk\lib 
  and move lxlib.dll to c:\tcltk\wish.

4. (build tcllib.dll and tcllib.lib)
  Choose [project]-[open], open c:\tcltk\tcl73\tcllib.mak and build.
  After building, move tcllib.lib to c:\tcltk\lib 
  and move tcllib.dll to c:\tcltk\wish.

5. (build a dummy of tklib.lib) *1
  Choose [project]-[open], open c:\tcltk\tk36\tklib.mak, 
  add "FIRST_COMP" option to [option]-[project]-[compile]-[preprocesser], 
  delete tkwlib from library definition in [option]-[link], and build.
  After building, move tklib.lib to c:\tcltk\lib

6. (build tkwlib.dll and tkwlib.lib)
   Choose [project]-[open], open c:\tcltk\tk36\tkwlib.mak and build.
   After building, move tkwlib.lib to c:\tcltk\lib 
   and move tkwlib.dll to to c:\tcltk\wish

7. (build true tklib.dll and tklib.lib) *1
   Choose [project]-[open], open c:\tcltk\tk36\tklib.mak, 
   delete "FIRST_COMP" option from [option]-[project]-[compile]-[preprocesser],
   add tkwlib to library definition in [option]-[link], and build.
   After building, move tklib.lib to c:\tcltk\lib 
   and move tklib.dll to c:\tcltk\wish.

8. (Build wish.exe)
   Choose [project]-[open], open c:\tcltk\wish\wish.mak, and build.

To use wish, add c:\tcltk\wish to the PATH environment variable 
or move all .exe files and .dll files to the directory where PATH environment 
variable has.

If you have any trouble, contact haga@sra.co.jp or miyata@sra.co.jp.

Note: (Phase 5 and 7)
*1: Since tklib and tkwlib refers each other, it can not be linked directly.

