Building Fossil on Windows with MinGW currently requires also MSYS, a small UNIX abstraction layer.

The attached patch for makemake.tcl extends the range of generated Makefiles with one for native MinGW, no MSYS or awk required.

Execute makemake.tcl from the Fossil toplevel directory as follows:

$ tclsh src/makemake.tcl MinGW > win/Makefile.MinGW

Specify the generated Makefile on the make command line:

$ make -f <path to

I am using this Makefile with the MinGW Distribution from without problems.

-- tsbg

When specifying the path to the MinGW Makefile on the make command line, use
a relative path specification. For example:

<verbatim>
$ make -f
</verbatim>

This is because the Makeheaders program has a problem with full paths on Windows:

<verbatim>
$ makeheaders
Can't read input file "d"
</verbatim>

I think this is because the colon is used on Windows as a device name separator.

-- tsbg