Instructions on building SWIG for Windows 95/NT

May 7, 1997

Instructions for Visual C++ 4.x
-------------------------------

1.  Take a look at the file 'make_win.in'.   You will need to change values
    as appropriate and decide where you want SWIG to be installed.

2.  Type 'msmake' to build SWIG.

3.  Type 'msmake install' to install SWIG and the SWIG library.
    The SWIG installation consists of two basic parts :

           swig.exe          -  The SWIG executable.  You should put
                                this somewhere on your PATH.

           swig_lib          -  The SWIG library.   This contains code
                                that is used by SWIG during its code
                                generation.

    By default, SWIG will install itself as follows :

           c:\swig1.1\swig.exe
           c:\swig1.1\swig_lib\

    To uninstall SWIG, simply delete the swig1.1 directory.

    Note : The location of the SWIG library is hard-wired into SWIG when you
    compile.   If you move the library to a new location, you should recompile
    or set the SWIG_LIB environment variable to point to its new location.

4.  To clean up, type 'msmake clean'.


Instructions for Borland C++
----------------------------

This Makefile has been provided by Pier Giorgio Esposito.   Please report
any problems to beazley@cs.utah.edu (I don't have a Borland compiler to
test this, but will make necessary changes).

1.  Modify the file 'make_bc.in'.

2.  Type 'make' to build SWIG.

3.  Type 'make install' to install SWIG.


Building the Examples
---------------------
Most of the examples have been built with Visual C++.   Edit the file
'Makefile.win' in the top level directory to reflect the settings
on your machine.  After this, you should be able to go into the
appropriate subdirectory and type 'make' to build each example.

I have not tested the examples on other compilers.    Patches and
contributions for other compilers are certainly welcome and I will
include them in future releases.
