<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
  *  nmake -f ms\nt.mak
  *  nmake -f ms\nt.mak install
  *  checkout fossil. assume
  *  cd
  *  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
  *  mkdir dmc\
  *  cd dmc
  *  -f

<h4>Updating windows sdk dmc</h4>
With the advent of fossil having a windows service interface compiling fossil will not work. The simplest option is to replace
The downside is that your headers are from 2 different versions and possible from 2 different sources. I used the files from to update the sdk.
The recipe for the upgrade can be found on the digital mars news server.

<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
  *  mkdir dmc\
  *  cd dmc
  *  -f


<h3>Compiling under windows with Mingw</h3>
<h4>Installing the tools.</h4>
  *  download Install it using the default <strong>c:\MingW</strong>. Make sure you tell the installer to include MSYS by checking the relevant option.
  *  Either build a user logon script, or change Windows' system PATH so MinGW finds its programs: and reboot
  *  If you want <strong>https</strong> support download the binary and developer files. Extract to <strong>c:\MingW</strong>

<h4>Getting fossil source code</h4>
Log on as Anonymous, go to the Timeline section, and download the latest development source code. Just unzip the Fossil file anywhere you want.

<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, cd c:\mingw, and run make -f win/Makefile.mingw. The compiled fossil.exe will be available at the root in c:\mingw.

<h3>Compiling under windows with PellesC</h3>
  *  download and install C-compiler
  *  download a windows version of
  *  download the zlib source and unzip
  *  checkout fossil
  *  edit Makefile.PellesCGMake and check paths
  *  open dosbox
  *  change directory to fossil project tree
  *  mkdir PellesC
  *  cd PellesC
  *  <i>unxutils-path</i>\make -f

This is tested under Windows XP with PellesC 5 and Window 7 with PellesC 6(32 & 64 bit)

<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 renez 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

<nowiki>
<pre>
<b>test</b>
</pre>
</nowiki>