Building Gwydion Dylan on Windows/Win32

Install your distributions

Install Perl for Win32
and GnuWin32.
Install the Gwydion Dylan source and binary distributions. In subsequent
discussion, it is assumed that both the source and binary distributions are
installed at the same root (normally c:\dylan, and this root is
implied when a relative pathname is given.

Make sure this includes %DylanDir%\bin.
Put it towards the end.
Also make sure that the Visual C++ cl and nmake
commands are found on Path (e.g. c:\msdev\bin.) Perl and the Gnu
utilities must also be on Path.

Include

Add %DylanDir%/include to the include variable.
Make sure that this variable also has the standard VC++ include directories
(e.g. c:\msdev\include.)

Lib

Add %DylanDir%/lib/dylan to the Lib
environment variable so that the linker can find the objects corresponding to
Dylan libraries. Make sure that Lib also includes the standard VC++ libraries
(e.g. c:\msdev\lib.)

(Note: The variable names are case insensitive)

Before going on, make sure you understand how environment variables work in NT.
You set environment variables using the System control in the Control Panel.
NT environment variables don't work quite the way Unix people expect them to.
There are two panels in that window, "System Variables" and "User Variables",
with the former being system wide and the latter being on a per-user basis.
Users can provide their own definitions for system variables, but they don't
override the system definition so much as they append to it. For instance, if
the system variable PATH was set to ".;c:\winnt35\system32", and
the user variable panel said PATH is "c:\gwydion\bin" , then the
real value of PATH is the sum of those,
".;c:\winnt35\system32;c:\gwydion\bin".

Finally, make sure you
save your changes: Nothing's really committed until you press the "Ok" button.
Also note that control panel environment variable setting only affect command
prompt windows started after the new setting took effect.

Building Mindy

On windows, we don't use the Unix Autoconf mechanism for building Mindy.
Instead, there is a Microsoft Visual C++ project file Mindy.mdp
in src/mindy/MS-Windows.
Mindy must be compiled before the rest of the build process is done via
Makegen/nmake. To recompile Mindy, follow these steps:

Copy MS-Windows\Mindy.* to src\mindy\

Fire up Visual C++ by double-clicking on Mindy.mak under the
file manager.

Optionally, you can edit interp/mindy.h and change the value
of LIBDIR to indicate where Mindy should look for library
files. If you edit this, you will not have to set the
DYLANDIR environment variable. BINDIR does nothing useful
in the Windows version of Mindy, so leave it alone.

Select Batch Build under Project. Check "Compiler Release"
"Interpretter Release", (note deliberate misspelling)
and "Shitpile Release". Select Build. This will build
the executables
src\mindy\Interpretter\Release\Interpretter.exe
and src\mindy\Compiler\Release\Mindycomp.exe.
These executables will later be installed in the appropriate places with the
appropriate names by "nmake install", but for now they will be run
as is.

Configuring with Makegen

Makegen generates nmake makefiles which
do most of the work of building Gwydion Dylan.
Create a directory to be the root of the build tree, hereafter referred to as
build\, normally c:\dylan\build. cd to
build\ and

copy ..\src\Defaults.win32 Defaults

Edit the Defaults file as you please to configure the build. Note in
particular the setting of $prefix to c:\dylan.
Now, if you have the binary distribution installed and
have set PATH correctly, then you should be able to say: