5.5. Building

So how do we actually build the Wine built-in Dll? The easiest way is to get Winemaker to do the hard work for us. For the simple example we have two source files (the wrapper and the spec file). We also have the 3rd party header and library files of course.

Put the two source files in a suitable directory and then use winemaker to create the build framework, including configure script, makefile etc. You will want to use the following options of winemaker:

After running winemaker I like to edit the Makefile.in to add the line CEXTRA = -Wall just before the DEFINES =.

Then simply run the configure and make as normal (described elsewhere).