gawk for PC Operating Systems ¶gawk can be compiled for Windows32 using MinGW (Windows32).
The file README_d/README.pc in the gawk distribution
contains additional notes, and pc/Makefile contains important
information on compilation options.
To build gawk for Windows32, copy the files in
the pc directory (except for ChangeLog) to the
directory with the rest of the gawk sources, then invoke
make with the appropriate target name as an argument to
build gawk. The Makefile copied from the pc
directory contains a configuration section with comments and may need
to be edited in order to work with your make utility.
The Makefile supports a number of targets for building various
Windows32 versions. A list of targets is printed if the
make command is given without a target. As an example,
to build a native MS-Windows binary of gawk using the MinGW tools,
type ‘make mingw32’.
If you are building with MinGW using anything other than pc/Makefile, be sure to pass the -D__USE_MINGW_ANSI_STDIO command-line option to GCC. This is necessary for correct operation of Gawk on Windows, in particular for displaying translated messages.