2000-11-06 06:41:23 +01:00
|
|
|
.\" -*- nroff -*-
|
2012-01-15 18:02:57 +01:00
|
|
|
.TH WINEMAKER 1 "Jan 2012" "@PACKAGE_STRING@" "Wine Developers Manual"
|
2000-11-06 06:41:23 +01:00
|
|
|
.SH NAME
|
|
|
|
winemaker \- generate a build infrastructure for compiling Windows programs on Unix
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B "winemaker "
|
|
|
|
[
|
2010-04-25 01:55:43 +02:00
|
|
|
.BR "--nobanner " "] [ " "--backup " "| " "--nobackup " "] [ "--nosource-fix "
|
2000-11-06 06:41:23 +01:00
|
|
|
]
|
|
|
|
.br
|
|
|
|
[
|
2010-04-25 01:55:43 +02:00
|
|
|
.BR "--lower-none " "| " "--lower-all " "| " "--lower-uppercase "
|
2000-11-06 06:41:23 +01:00
|
|
|
]
|
2000-11-10 23:28:33 +01:00
|
|
|
.br
|
|
|
|
[
|
2010-04-25 01:55:43 +02:00
|
|
|
.BR "--lower-include " "| " "--nolower-include " ]\ [ " --mfc " "| " "--nomfc "
|
2000-11-10 23:28:33 +01:00
|
|
|
]
|
2000-11-06 06:41:23 +01:00
|
|
|
.br
|
|
|
|
[
|
2012-01-15 18:02:57 +01:00
|
|
|
.BR "--guiexe " "| " "--windows " "| " "--cuiexe " "| " "--console " "| " "--dll " "| " "--lib "
|
2000-11-06 06:41:23 +01:00
|
|
|
]
|
|
|
|
.br
|
|
|
|
[
|
2010-04-25 01:55:43 +02:00
|
|
|
.BI "-D" macro "\fR[=\fIdefn\fR] ] [" "\ " "-I" "dir\fR ]\ [ " "-P" "dir\fR ] [ " "-i" "dll\fR ] [ " "-L" "dir\fR ] [ " "-l" "library "
|
2000-11-06 06:41:23 +01:00
|
|
|
]
|
|
|
|
.br
|
|
|
|
[
|
2010-04-25 01:55:43 +02:00
|
|
|
.BR "--nodlls " "] [ " "--nomsvcrt " "] [ " "--interactive " "] [ " "--single-target \fIname\fR "
|
2000-11-06 06:41:23 +01:00
|
|
|
]
|
2000-11-10 23:28:33 +01:00
|
|
|
.br
|
|
|
|
[
|
2010-04-25 01:55:43 +02:00
|
|
|
.BR "--generated-files " "] [ " "--nogenerated-files " "]
|
2009-05-01 11:37:06 +02:00
|
|
|
]
|
|
|
|
.br
|
|
|
|
[
|
2010-04-25 01:55:43 +02:00
|
|
|
.BR "--wine32 " "]
|
2009-04-02 18:53:28 +02:00
|
|
|
.br
|
2010-04-25 01:55:43 +02:00
|
|
|
.IR " work_directory" " | " "project_file" " | " "workspace_file"
|
2000-11-06 06:41:23 +01:00
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.PP
|
|
|
|
.B winemaker
|
2002-09-10 02:20:27 +02:00
|
|
|
is a perl script designed to help you bootstrap the
|
2000-12-02 21:14:20 +01:00
|
|
|
process of converting your Windows sources to Winelib programs.
|
2000-11-06 06:41:23 +01:00
|
|
|
.PP
|
|
|
|
In order to do this winemaker can perform the following operations:
|
|
|
|
.PP
|
2002-09-10 02:20:27 +02:00
|
|
|
- rename your source files and directories to lowercase in the event they
|
2000-11-06 06:41:23 +01:00
|
|
|
got all uppercased during the transfer.
|
|
|
|
.PP
|
|
|
|
- perform Dos to Unix (CRLF to LF) conversions.
|
|
|
|
.PP
|
2002-09-10 02:20:27 +02:00
|
|
|
- scan the include statements and resource file references to replace the
|
2000-11-06 06:41:23 +01:00
|
|
|
backslashes with forward slashes.
|
|
|
|
.PP
|
2002-09-10 02:20:27 +02:00
|
|
|
- during the above step winemaker will also perform a case insensitive search
|
|
|
|
of the referenced file in the include path and rewrite the include statement
|
2000-11-06 06:41:23 +01:00
|
|
|
with the right case if necessary.
|
|
|
|
.PP
|
2002-09-10 02:20:27 +02:00
|
|
|
- winemaker will also check other more exotic issues like '#pragma pack'
|
|
|
|
usage, use of "afxres.h" in non MFC projects, and more. Whenever it
|
2000-11-06 06:41:23 +01:00
|
|
|
encounters something out of the ordinary, winemaker will warn you about it.
|
|
|
|
.PP
|
2002-09-10 02:20:27 +02:00
|
|
|
- winemaker can also scan a complete directory tree at once, guess what are
|
|
|
|
the executables and libraries you are trying to build, match them with
|
2010-04-02 18:02:53 +02:00
|
|
|
source files, and generate the corresponding Makefile.
|
2000-11-06 06:41:23 +01:00
|
|
|
.PP
|
2009-04-02 18:53:28 +02:00
|
|
|
- finally winemaker will generate a global Makefile for normal use.
|
2000-11-06 06:41:23 +01:00
|
|
|
.PP
|
|
|
|
- winemaker knows about MFC-based project and will generate customized files.
|
|
|
|
.PP
|
2010-05-13 22:10:02 +02:00
|
|
|
- winemaker can read existing project files. It supports dsp, dsw, vcproj and sln files.
|
2009-04-02 18:53:28 +02:00
|
|
|
.PP
|
2000-11-06 06:41:23 +01:00
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.B --nobanner
|
2000-11-06 06:41:23 +01:00
|
|
|
Disables the printing of the banner.
|
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.B --backup
|
2002-09-10 02:20:27 +02:00
|
|
|
Directs winemaker to perform a backup of all the source files in which it
|
2000-11-06 06:41:23 +01:00
|
|
|
makes changes. This is the default.
|
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.B --nobackup
|
2000-11-06 06:41:23 +01:00
|
|
|
Tells winemaker not to backup modified source files.
|
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.B --nosource-fix
|
2001-10-02 19:47:34 +02:00
|
|
|
Directs winemaker not to try fixing the source files (e.g. Dos to Unix
|
|
|
|
conversion). This prevents complaints if the files are readonly.
|
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.B --lower-all
|
2000-11-06 06:41:23 +01:00
|
|
|
Tells winemaker to rename all files and directories to lowercase.
|
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.B --lower-uppercase
|
2002-09-10 02:20:27 +02:00
|
|
|
Tells winemaker to only rename files and directories that have an all
|
|
|
|
uppercase name.
|
2000-11-06 06:41:23 +01:00
|
|
|
So "HELLO.C" would be renamed but not "World.c".
|
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.B --lower-none
|
2002-09-10 02:20:27 +02:00
|
|
|
Tells winemaker not to rename files and directories to lower case. Note
|
|
|
|
that this does not prevent the renaming of a file if its extension cannot
|
2000-11-06 06:41:23 +01:00
|
|
|
be handled as is, e.g. ".Cxx". This is the default.
|
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.B "--lower-include "
|
2002-09-10 02:20:27 +02:00
|
|
|
Tells winemaker that if it does not find the file corresponding to an
|
|
|
|
include statement (or other form of file reference for resource files),
|
2000-11-10 23:28:33 +01:00
|
|
|
then it should convert that filename to lowercase. This is the default.
|
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.B "--nolower-include "
|
2002-09-10 02:20:27 +02:00
|
|
|
Tells winemaker not to modify the include statement if it cannot find the
|
2000-11-10 23:28:33 +01:00
|
|
|
referenced file.
|
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.BR "--guiexe " "| " "--windows"
|
2002-09-10 02:20:27 +02:00
|
|
|
Specifies that whenever winemaker finds an executable target, or a target of
|
2000-11-06 06:41:23 +01:00
|
|
|
unknown type, it should assume that it is a graphical application.
|
|
|
|
This is the default.
|
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.BR "--cuiexe " "| " "--console"
|
2002-09-10 02:20:27 +02:00
|
|
|
Specifies that whenever winemaker finds an executable target, or a target of
|
2000-11-06 06:41:23 +01:00
|
|
|
unknown type, it should assume that it is a console application.
|
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.B --dll
|
2002-09-10 02:20:27 +02:00
|
|
|
This option tells winemaker that whenever it finds a target of unknown type,
|
2012-01-15 18:02:57 +01:00
|
|
|
i.e. for which it does not know whether it is an executable, a dll, or a static library,
|
|
|
|
it should assume it is a dll.
|
|
|
|
.TP
|
|
|
|
.B --lib
|
|
|
|
This option tells winemaker that whenever it finds a target of unknown type,
|
|
|
|
i.e. for which it does not know whether it is an executable, a dll, or a static library,
|
|
|
|
it should assume it is a static library.
|
2000-11-06 06:41:23 +01:00
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.B --mfc
|
2010-05-13 22:10:02 +02:00
|
|
|
Specifies that the targets are MFC based. In such a case winemaker adapts
|
|
|
|
the include and library paths accordingly, and links the target with the
|
|
|
|
MFC library.
|
2000-11-06 06:41:23 +01:00
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.B --nomfc
|
2002-09-10 02:20:27 +02:00
|
|
|
Specifies that targets are not MFC-based. This option disables use of MFC libraries
|
|
|
|
even if winemaker encounters files "stdafx.cpp" or "stdafx.h" that would cause it
|
|
|
|
to enable MFC automatically if neither --nomfc nor --mfc was specified.
|
2000-11-06 06:41:23 +01:00
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.BI -D macro "\fR[=\fIdefn\fR]"
|
2002-09-10 02:20:27 +02:00
|
|
|
Adds the specified macro definition to the global list of macro definitions.
|
2000-11-06 06:41:23 +01:00
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.BI -I dir
|
2000-11-06 06:41:23 +01:00
|
|
|
Appends the specified directory to the global include path.
|
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.BI -P dir
|
2009-04-02 18:53:28 +02:00
|
|
|
Appends the specified directory to the global dll path.
|
2000-11-06 06:41:23 +01:00
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.BI -i dll
|
2002-09-10 02:20:27 +02:00
|
|
|
Adds the Winelib library to the global list of Winelib libraries to import.
|
2000-11-30 21:36:18 +01:00
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.BI -L dir
|
2009-04-02 18:53:28 +02:00
|
|
|
Appends the specified directory to the global library path.
|
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.BI -l library
|
2000-11-06 06:41:23 +01:00
|
|
|
Adds the specified library to the global list of libraries to link with.
|
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.B --nodlls
|
2009-09-12 14:37:40 +02:00
|
|
|
This option tells winemaker not to use the standard set of winelib libraries
|
|
|
|
for imports. That is, any DLL your code uses must be explicitly passed to
|
|
|
|
winemaker with -i options.
|
|
|
|
The standard set of libraries is: odbc32.dll, odbccp32.dll, ole32.dll,
|
|
|
|
oleaut32.dll and winspool.drv.
|
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.B --nomsvcrt
|
2009-09-12 14:37:40 +02:00
|
|
|
Sets some options to tell winegcc not to compile against msvcrt.
|
|
|
|
Use this option if you have cpp-files that include <string>.
|
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.B --interactive
|
2002-09-10 02:20:27 +02:00
|
|
|
Puts winemaker in interactive mode. In this mode winemaker will ask you to
|
|
|
|
confirm each directory's list of targets, and then to provide directory and
|
2000-11-06 06:41:23 +01:00
|
|
|
target specific options.
|
|
|
|
.TP
|
2010-05-13 22:10:02 +02:00
|
|
|
.BR --single-target " name"
|
2000-11-06 06:41:23 +01:00
|
|
|
Specifies that there is only one target, and that it is called "name".
|
2000-11-10 23:28:33 +01:00
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.B --generated-files
|
2010-04-02 18:02:53 +02:00
|
|
|
Tells winemaker to generate the Makefile. This is the default.
|
2000-11-10 23:28:33 +01:00
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.B --nogenerated-files
|
2004-02-27 22:24:20 +01:00
|
|
|
Tells winemaker not to generate the Makefile.
|
2009-05-01 11:37:06 +02:00
|
|
|
.TP
|
2010-04-25 01:55:43 +02:00
|
|
|
.B --wine32
|
2010-05-13 22:10:02 +02:00
|
|
|
Tells winemaker to generate a 32-bit target. This is useful on wow64 systems.
|
2010-04-21 20:22:13 +02:00
|
|
|
Without that option the default architecture is used.
|
2000-11-06 06:41:23 +01:00
|
|
|
|
|
|
|
.SH EXAMPLES
|
|
|
|
.PP
|
|
|
|
Here is a typical winemaker use:
|
|
|
|
.PP
|
2009-04-02 18:53:28 +02:00
|
|
|
$ winemaker --lower-uppercase -DSTRICT .
|
2000-11-06 06:41:23 +01:00
|
|
|
.PP
|
2002-09-10 02:20:27 +02:00
|
|
|
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
|
2009-04-02 18:53:28 +02:00
|
|
|
these sources. Finally winemaker will create a Makefile.
|
2000-11-06 06:41:23 +01:00
|
|
|
.PP
|
|
|
|
The next step would be:
|
|
|
|
.PP
|
|
|
|
$ make
|
|
|
|
.PP
|
2002-09-10 02:20:27 +02:00
|
|
|
If at this point you get compilation errors (which is quite likely for a
|
|
|
|
reasonably sized project) then you should consult the Winelib User Guide to
|
2000-12-02 21:14:20 +01:00
|
|
|
find tips on how to resolve them.
|
2000-11-06 06:41:23 +01:00
|
|
|
.PP
|
2009-04-02 18:53:28 +02:00
|
|
|
For an MFC-based project you would have to run the following commands instead:
|
2000-11-06 06:41:23 +01:00
|
|
|
.PP
|
2009-04-02 18:53:28 +02:00
|
|
|
$ winemaker --lower-uppercase --mfc .
|
2000-11-06 06:41:23 +01:00
|
|
|
.br
|
2009-04-02 18:53:28 +02:00
|
|
|
$ make
|
|
|
|
.PP
|
|
|
|
For an existing project-file you would have to run the following commands:
|
|
|
|
.PP
|
2009-09-12 14:37:40 +02:00
|
|
|
$ winemaker myproject.dsp
|
2000-11-06 06:41:23 +01:00
|
|
|
.br
|
|
|
|
$ make
|
|
|
|
.PP
|
|
|
|
|
|
|
|
.SH TODO / BUGS
|
|
|
|
.PP
|
2010-05-13 22:10:02 +02:00
|
|
|
In some cases you will have to edit the Makefile or source files by yourself.
|
2000-11-06 06:41:23 +01:00
|
|
|
.PP
|
2002-09-10 02:20:27 +02:00
|
|
|
Assuming that the windows executable/library is available, we could
|
2009-08-16 15:33:11 +02:00
|
|
|
use winedump to determine what kind of executable it is (graphical
|
2002-09-10 02:20:27 +02:00
|
|
|
or console), which libraries it is linked with, and which functions it
|
|
|
|
exports (for libraries). We could then restore all these settings for the
|
2009-08-16 15:33:11 +02:00
|
|
|
corresponding Winelib target.
|
2000-11-06 06:41:23 +01:00
|
|
|
.PP
|
2009-08-16 15:33:11 +02:00
|
|
|
Furthermore winemaker is not very good at finding the library containing the
|
2002-09-10 02:20:27 +02:00
|
|
|
executable: it must either be in the current directory or in the
|
2000-11-06 06:41:23 +01:00
|
|
|
.IR LD_LIBRARY_PATH .
|
|
|
|
.PP
|
|
|
|
Winemaker does not support message files and the message compiler yet.
|
|
|
|
.PP
|
|
|
|
|
|
|
|
.SH SEE ALSO
|
|
|
|
.PP
|
2000-12-02 21:14:20 +01:00
|
|
|
The Winelib User Guide:
|
2000-11-06 06:41:23 +01:00
|
|
|
.PP
|
2009-04-02 18:53:28 +02:00
|
|
|
http://www.winehq.org/docs/winelib-guide/index
|
2000-11-06 06:41:23 +01:00
|
|
|
.PP
|
|
|
|
.BR wine (1)
|
|
|
|
.PP
|
|
|
|
|
2009-09-12 14:37:40 +02:00
|
|
|
.SH AUTHORS
|
|
|
|
François Gouget for CodeWeavers
|
|
|
|
.PP
|
|
|
|
Dimitrie O. Paun
|
|
|
|
.PP
|
|
|
|
André Hentschel
|
|
|
|
.PP
|