wined3d: Remove superfluous semicolons.
[wine/wine64.git] / tools / winemaker.man.in
blobfc57a3c69fae849e7c84e22de1e761aaf7eb7425
1 .\" -*- nroff -*-
2 .TH WINEMAKER 1 "October 2005" "@PACKAGE_STRING@" "Wine Developers Manual"
3 .SH NAME
4 winemaker \- generate a build infrastructure for compiling Windows programs on Unix
5 .SH SYNOPSIS
6 .B "winemaker "
8 .IR               "--nobanner " "] [ " "--backup " "| " "--nobackup " "] [ "--nosource-fix "
10 .br
11   [
12 .IR               "--lower-none " "| " "--lower-all " "| " "--lower-uppercase "
14 .br
15   [
16 .IR               "--lower-include " "| " "--nolower-include " ] [ " "--mfc " "| " "--nomfc "
18 .br
19   [
20 .IR               "--guiexe " "| " "--windows " "| " "--cuiexe " "| " "--console " "| " "--dll " "| " "--nodlls "
22 .br
23   [
24 .IR               "-Dmacro[=defn] " "] [ " "-Idir " "] [ " "-Ldir " "] [ " "-idll" "] [ " "-llibrary "
26 .br
27   [
28 .IR               "--interactive " "] [ " "--single-target name "
30 .br
31   [
32 .IR               "--generated-files " "] [ " "--nogenerated-files " "] 
35 .SH DESCRIPTION
36 .PP
37 .B winemaker
38 is a perl script designed to help you bootstrap the
39 process of converting your Windows sources to Winelib programs.
40 .PP
41 In order to do this winemaker can perform the following operations:
42 .PP
43 - rename your source files and directories to lowercase in the event they
44 got all uppercased during the transfer.
45 .PP
46 - perform Dos to Unix (CRLF to LF) conversions.
47 .PP
48 - scan the include statements and resource file references to replace the
49 backslashes with forward slashes.
50 .PP
51 - during the above step winemaker will also perform a case insensitive search
52 of the referenced file in the include path and rewrite the include statement
53 with the right case if necessary.
54 .PP
55 - winemaker will also check other more exotic issues like '#pragma pack'
56 usage, use of "afxres.h" in non MFC projects, and more. Whenever it
57 encounters something out of the ordinary, winemaker will warn you about it.
58 .PP
59 - winemaker can also scan a complete directory tree at once, guess what are
60 the executables and libraries you are trying to build, match them with
61 source files, and generate the corresponding Makefile.in files.
62 .PP
63 - finally winemaker will generate a global Makefile.in file calling out to all
64 the others, and a configure script customized for use with Winelib.
65 .PP
66 - winemaker knows about MFC-based project and will generate customized files.
67 .PP
68 .SH OPTIONS
69 .TP
70 .I --nobanner
71 Disables the printing of the banner.
72 .TP
73 .I --backup
74 Directs winemaker to perform a backup of all the source files in which it
75 makes changes. This is the default.
76 .TP
77 .I --nobackup
78 Tells winemaker not to backup modified source files.
79 .TP
80 .I --nosource-fix
81 Directs winemaker not to try fixing the source files (e.g. Dos to Unix
82 conversion). This prevents complaints if the files are readonly.
83 .TP
84 .I --lower-all
85 Tells winemaker to rename all files and directories to lowercase.
86 .TP
87 .I --lower-uppercase
88 Tells winemaker to only rename files and directories that have an all
89 uppercase name.
90 So "HELLO.C" would be renamed but not "World.c".
91 .TP
92 .I --lower-none
93 Tells winemaker not to rename files and directories to lower case. Note
94 that this does not prevent the renaming of a file if its extension cannot
95 be handled as is, e.g. ".Cxx". This is the default.
96 .TP
97 .I "--lower-include "
98 Tells winemaker that if it does not find the file corresponding to an
99 include statement (or other form of file reference for resource files),
100 then it should convert that filename to lowercase. This is the default.
102 .I "--nolower-include "
103 Tells winemaker not to modify the include statement if it cannot find the
104 referenced file.
106 .IR "--guiexe " "| " "--windows"
107 Specifies that whenever winemaker finds an executable target, or a target of
108 unknown type, it should assume that it is a graphical application.
109 This is the default.
111 .IR "--cuiexe " "| " "--console"
112 Specifies that whenever winemaker finds an executable target, or a target of
113 unknown type, it should assume that it is a console application.
115 .I --dll
116 This option tells winemaker that whenever it finds a target of unknown type,
117 i.e. for which it does not know whether it is an executable or a library,
118 it should assume it is a library.
120 .I --nodlls
121 This option tells winemaker not to use the standard set of winelib libraries
122 for imports. That is, any DLL your code uses must be explicitly passed to
123 winemaker with -i options.
124 The standard set of libraries is: advapi32.dll, comdlg32.dll, gdi32.dll,
125 kernel32.dll, odbc32.dll, ole32.dll, oleaut32.dll, shell32.dll, user32.dll,
126 winspool.drv.
128 .I --mfc
129 Specifies that the targets are MFC based. In such a case winemaker the include 
130 and library paths accordingly, and links the target with the MFC library.
132 .I --nomfc
133 Specifies that targets are not MFC-based. This option disables use of MFC libraries
134 even if winemaker encounters files "stdafx.cpp" or "stdafx.h" that would cause it
135 to enable MFC automatically if neither --nomfc nor --mfc was specified.
137 .I -Dmacro[=defn]
138 Adds the specified macro definition to the global list of macro definitions.
140 .I -Idir
141 Appends the specified directory to the global include path.
143 .I -Ldir
144 Appends the specified directory to the global library path.
146 .I -idll
147 Adds the Winelib library to the global list of Winelib libraries to import.
149 .I -llibrary
150 Adds the specified library to the global list of libraries to link with.
152 .I --interactive
153 Puts winemaker in interactive mode. In this mode winemaker will ask you to
154 confirm each directory's list of targets, and then to provide directory and
155 target specific options.
157 .I --single-target name
158 Specifies that there is only one target, and that it is called "name".
160 .I --generated-files
161 Tells winemaker to generate the build the Makefile. This is the default.
163 .I --nogenerated-files
164 Tells winemaker not to generate the Makefile.
166 .SH EXAMPLES
168 Here is a typical winemaker use:
170 $ winemaker --lower-uppercase -DSTRICT
172 The above tells winemaker to scan the current directory and its
173 subdirectories for source files. Whenever if finds a file or directory which
174 name is all uppercase, it should rename it to lowercase. It should then fix
175 all these source files for compilation with Winelib and generate Makefiles.
176 The '-DSTRICT' specifies that the STRICT macro must be set when compiling
177 these sources. Finally winemaker will create a global Makefile.in and
178 configure.in, and run autoconf to generate the configure script.
180 The next step would be:
182 $ ./configure --with-wine=/usr/local/opt/wine
184 This generates the makefiles from the Makefile.in files. The generated
185 makefiles will fetch the Winelib headers and libraries from the Wine
186 installation located in /usr/local/opt/wine.
188 And finally:
190 $ make
192 If at this point you get compilation errors (which is quite likely for a
193 reasonably sized project) then you should consult the Winelib User Guide to
194 find tips on how to resolve them.
196 For an MFC-based project one would have run the following commands instead:
198 $ winemaker --lower-uppercase --mfc
200 $ ./configure --with-wine=/usr/local/opt/wine \\
202               --with-mfc=/usr/local/opt/mfc
204 $ make
207 .SH TODO / BUGS
209 Winemaker should support the Visual Studio project files (.dsp for newer
210 versions and .mak for some older versions). This would allow it to be much
211 more accurate, especially for the macro, include and library path
212 settings.
214 Assuming that the windows executable/library is available, we could
215 use a pedump-like tool to determine what kind of executable it is (graphical
216 or console), which libraries it is linked with, and which functions it
217 exports (for libraries). We could then restore all these settings for the
218 corresponding Winelib target. The problem is that we should have such a tool
219 available under the Wine license first.
221 Furthermore it is not very good at finding the library containing the
222 executable: it must either be in the current directory or in the
223 .IR LD_LIBRARY_PATH .
225 Winemaker does not support message files and the message compiler yet.
228 .SH SEE ALSO
230 The Winelib User Guide:
232 http://wine.codeweavers.com/docs/winelib-user/
234 .BR wine (1)
237 .SH AUTHOR
238 Francois Gouget <fgouget@codeweavers.com> for CodeWeavers