WINEMAKER(1)
π WINEMAKER π
okay bestie, pull up a chair, we're doing winemaker β that's section 1 of the Wine Developers Manual, and it is literally the glow-up machine for your dusty Windows code. no cap. π§β¨
β¨ NAME β¨
winemaker β she generates a build infrastructure for compiling Windows programs on Unix. she's the friend who shows up with a label maker and a plan. π
πΈ SYNOPSIS πΈ
winemaker [ --nobanner ] [ --backup | --nobackup ] [ --nosource-fix ]
[ --lower-none | --lower-all | --lower-uppercase ]
[ --lower-include | --nolower-include ] [ --mfc | --nomfc ]
[ --guiexe | --windows | --cuiexe | --console | --dll | --lib ]
[ -Dmacro[=defn] ] [ -Idir ] [ -Pdir ] [ -idll ] [ -Ldir ] [ -llibrary
]
[ --nodlls ] [ --nomsvcrt ] [ --interactive ] [ --single-target name ]
[ --generated-files ] [ --nogenerated-files ]
[ --wine32 ]
work_directory | project_file | workspace_file
π¦ DESCRIPTION π¦
so winemaker is a perl script, and her whole job β her main character era, if you will β is helping you bootstrap the process of converting your Windows sources into Winelib programs. she's giving project manager. she's giving "I already did it while you were typing." π
here's what she can do for you, bestie:
- rename your source files and directories to lowercase, in the event they got all uppercased during the transfer. (we don't talk about the transfer.)
- perform DOS to Unix (CRLF to LF) conversions.
- scan the
includestatements and resource file references to replace the backslashes with forward slashes. slay. - during the above step, she'll also do a case insensitive search of the referenced file in the include path, and rewrite the include statement with the right case if necessary. the way she catches that π
- she'll also check other more exotic issues like
#pragma packusage, use ofafxres.hin non MFC projects, and more. whenever she encounters something out of the ordinary, she will warn you about it. she's not being shady, she's being helpful. - she can also scan a complete directory tree at once, guess what are the executables and libraries you are trying to build, match them with source files, and generate the corresponding
Makefile. icon. - finally, she'll generate a global
Makefilefor normal use. periodt. - she knows about MFC-based projects and will generate customized files. queen behavior π
- and she can read existing project files. she supports
dsp,dsw,vcprojandslnfiles. she's multilingual, actually. π
π OPTIONS π
--nobannerβ disables the printing of the banner. no intro, straight to business.--backupβ perform a backup of all the modified source files. this is the default, because she's responsible like that. π--nobackupβ do not backup modified source files. living dangerously, ig. π--nosource-fixβ do no try to fix the source files (e.g. DOS to Unix conversion). this prevents complaints if the files are readonly.--lower-allβ rename all files and directories to lowercase. everything. lowercase everything. πΈ--lower-uppercaseβ only rename files and directories that have an all uppercase name. soHELLO.Cwould be renamed but notWorld.c. selective, and honestly valid.--lower-noneβ do not rename files and directories to lower case. note that this does not prevent the renaming of a file if its extension cannot be handled as is, e.g..Cxx. this is the default.--lower-includeβ when the file corresponding to an include statement (or other form of file reference for resource files) cannot be found, convert that filename to lowercase. this is the default.--nolower-includeβ do not modify the include statement if the referenced file cannot be found. leave it alone, she's not touching it.--guiexe|--windowsβ assume a graphical application when an executable target or a target of unknown type is found. this is the default. π--cuiexe|--consoleβ assume a console application when an executable target or a target of unknown type is found.--dllβ assume a dll when a target of unknown type is found, i.e. whenwinemakeris unable to determine whether it is an executable, a dll, or a static library,--libβ assume a static library when a target of unknown type is found, i.e. whenwinemakeris unable to determine whether it is an executable, a dll, or a static library,--mfcβ specify that the targets are MFC based. in such a casewinemakeradapts the include and library paths accordingly, and links the target with the MFC library.--nomfcβ specify that targets are not MFC-based. this option disables use of MFC libraries even ifwinemakerencounters filesstdafx.cpporstdafx.hthat would cause it to enable MFC automatically if neither--nomfcnor--mfcwas specified. boundary setting, we love to see it.-Dmacro[=defn]β add the specified macro definition to the global list of macro definitions.-Idirβ append the specified directory to the global include path.-Pdirβ append the specified directory to the global dll path.-idllβ add the Winelib library to the global list of Winelib libraries to import.-Ldirβ append the specified directory to the global library path.-llibraryβ add the specified library to the global list of libraries to link with.--nodllsβ do not use the standard set of Winelib libraries for imports. that is, any DLL your code uses must be explicitly passed with-ioptions. the standard set of libraries is:odbc32.dll,odbccp32.dll,ole32.dll,oleaut32.dllandwinspool.drv.--nomsvcrtβ set some options to tellwinegccnot to compile againstmsvcrt. use this option if you have cpp-files that include<string>.--interactiveβ use interactive mode. in this modewinemakerwill ask you to confirm the list of targets for each directory, and then to provide directory and target specific options. she will text you back, basically. π«Ά--single-target nameβ specify that there is only one target, called name.--generated-filesβ generate theMakefile. this is the default.--nogenerated-filesβ do not generate theMakefile.--wine32β generate a 32-bit target. this is useful on wow64 systems. without that option the default architecture is used.
π EXAMPLES π
here's a typical winemaker use:
$ winemaker --lower-uppercase -DSTRICT .
the above tells winemaker to scan the current directory and its subdirectories for source files. whenever if finds a file or directory which name is all uppercase, it should rename it to lowercase. it should then fix all these source files for compilation with Winelib and generate Makefiles. the -DSTRICT specifies that the STRICT macro must be set when compiling these sources. finally a Makefile will be created.
the next step would be:
$ make
if at this point you get compilation errors (which is quite likely for a reasonably sized project, no shade) then you should consult the Winelib User Guide to find tips on how to resolve them.
for an MFC-based project you would have to run the following commands instead:
$ winemaker --lower-uppercase --mfc .
$ make
for an existing project-file you would have to run the following commands:
$ winemaker myproject.dsp
$ make
π TODO / BUGS π
in some cases you will have to edit the Makefile or source files manually. it's not you, it's the codebase.
assuming that the windows executable/library is available, we could use winedump to determine what kind of executable it is (graphical or console), which libraries it is linked with, and which functions it exports (for libraries). we could then restore all these settings for the corresponding Winelib target. one day. π¦
furthermore winemaker is not very good at finding the library containing the executable: it must either be in the current directory or in the LD_LIBRARY_PATH.
winemaker does not support message files and the message compiler yet.
bugs can be reported on the Wine bug tracker.
π AUTHORS π
- FranΓ§ois Gouget for CodeWeavers
- Dimitrie O. Paun
- AndrΓ© Hentschel
π AVAILABILITY π
winemaker is part of the Wine distribution, which is available through WineHQ, the Wine development headquarters.
π SEE ALSO π
wine(1), Wine documentation and support.
and that's the whole page, bestie β no crumbs left. π this was Wine 11.20, dated Jan 2012, and yeah, she's a vintage. π β¨
π¦ where this page comes from
- fedora 44: wine-devel 11.20-1.fc44 Β· LGPL-2.1-or-later
- fedora 44: wine-devel 11.20-1.fc44 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms