<h3>Compiling under windows <big>XP</big> with sdk compiler.</h3>
  *  download Windows SDK for Windows 7 and .NET Framework 3.5 SP1]. Install and configure.
  *  download the source].
  *  download openssl source]
  *  download
  *  download
  *  install sdk
  *  install nasm
  *  install perl
  *  mkdir
  *  unzip zlib. I assume
  *  unpack ssl source. I assume
  *  open VIA START MENU "SDK..." > cmd shell
  *  cd
  *  edit win32\Makefile.msc change CFLAGS to -MT -O2. Add inffast.obj to OBJS
  *  nmake win32\Makefile.msc
  *  copy zlib.lib
  *  copy zlib.h and zconf.h to
  *  make sure nasm is in the path
  *  cd into
  *  perl Configure VC-WIN32
  *  ms\do_nasm
  *  Edit ms\nt.mak change ASM=nasmw to ASM=nasm
  *  nmake -f ms\nt.mak
  *  nmake -f ms\nt.mak install
  *  checkout fossil. assume
  *  cd
  *  fossil update windowscompilers
  *  mkdir msc\
  *  cd msc
  *  edit to enable SSL and uncomment the SSL LIBS
  *  nmake -f

<h3>Compiling under windows with Digital Mars C compiler</h3>
  *  download Mars c-ompiler]. unzip to c:\
  *  download the source].
  *  unzip it and compile
  *  open dosbox
  *  mkdir
  *  copy zlib.lib
  *  copy zlib.h and zconf.h to
  *  checkout fossil. assume
  *  cd
  *  fossil update windowscompilers
  *  mkdir dmc\
  *  cd dmc
  *  -f

<h3>Compiling under Wine with Digital Mars C compiler</h3>
  *  download Mars c-ompiler]. unzip to c:\
  *  download the source].
  *  unzip it
  *  open dosbox "wineconsole cmd"
  *  compile zlib
  *  mkdir
  *  copy zlib.lib
  *  copy zlib.h and zconf.h to
  *  checkout fossil. assume
  *  cd
  *  fossil update windowscompilers
  *  mkdir dmc\
  *  cd dmc
  *  -f


<h3>Compiling under windows with Mingw</h3>
<h4>Installing the tools.</h4>
  *  download version 5.1.6 or later. Install it. I assume it will be installed in <strong>c:\MingW</strong>
  *  download version 1.0.10 or later. Install it. I assume it will be installed in <strong>c:\msys</strong>
  *  download the binary and developer files. Extract to <strong>c:\MingW</strong>
  *  If you want <strong>https</strong> support download the binary and developer files. Extract to <strong>c:\MingW</strong>
  *  download and copy fossil.exe to

<h4>Getting fossil source code</h4>
  *  start msys. This will start a bash shell.
  *  mkdir fossil; cd fossil
  *  clone fossil repository. e.g. fossil clone myclone.fossil
  *  mkdir src; cd src
  *  fossil  open ../myclone.fossil

<h4>Compiling fossil source code</h4>
  *  If you want <strong>https</strong> supports
     <ul><li>make -f Makefile.w32 FOSSIL_ENABLE_SSL=1 LIB="-lssl -lcrypto -lgdi32 -lmingwex -lz -lws2_32"</li> </ul>
  *  else do make -f Makefile.w32


<h3>Compiling under linux for windows with Mingw</h3>
This is called cross compiling. I'm using linux] distribution which
uses the package manager pacman to install packages. If you have a differen linux distribution the packages might be called different. I assume a login name of substitute yours were apropiate.

<h4>Installing the tools.</h4>
  *  Install mingw32-gccs. With Arch linux you do Pacman -S mingw32-gcc (As root!). This will be installed in
  *  download the binary and developer files.
  *  If you want <strong>https</strong> support download the binary and developer files.
  *  Extract to by: su to root
  *  cd
  *  unzip
  *  unzip
  *  unzip
  *  unzip
  *  exit root
  *  download for linux, and copy fossil to some where in your PATH directories maybe $HOME/bin.

<h4>Getting fossil source code</h4>
  *  cd ; mkdir fossil; cd fossil
  *  clone fossil repository. e.g. fossil clone myclone.fossil
  *  mkdir src; cd src
  *  fossil  open ../myclone.fossil

<h4>Compiling fossil source code</h4>
  *  If you want <strong>https</strong> supports
     <ul><li>make -f Makefile.w32 TCC="i486-mingw32-gcc -Os -Wall  -DFOSSIL_I18N=0  -DFOSSIL_ENABLE_SSL=1 LIB="-lssl -lcrypto -lgdi32 -lmingwex -lz -lws2_32"</li> </ul>
  *   else make -f Makefile.w32 TCC="i486-mingw32-gcc -Os -Wall  -DFOSSIL_I18N=0  "

<h4>Distribution of cross compiled fossil.exe</h4>
Because you have linked against zlib and maybe ssl you need to include from zlib1.dll and, optional, libssl32.dll (and maybe also libeay32.dll)

<h4>testing the cross compiled fossil.exe</h4>
  *  copy fossil.exe and the dll's to a windows system. For testing purpose all in one directory. For production use a directory in your PATH
  *  fossil clone http.fossil
  *  If it has <strong>https</strong> support then fossil clone https.fossil