winex11.drv: Empty clipboard cache on process unload to avoid false positives being...
[wine] / tools / winemaker.man.in
1 .\" -*- nroff -*-
2 .TH WINEMAKER 1 "Sep 2009" "@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 "
7 [
8 .IR               "--nobanner " "] [ " "--backup " "| " "--nobackup " "] [ "--nosource-fix "
9 ]
10 .br
11   [
12 .IR               "--lower-none " "| " "--lower-all " "| " "--lower-uppercase "
13 ]
14 .br
15   [
16 .IR               "--lower-include " "| " "--nolower-include " ] [ " "--mfc " "| " "--nomfc "
17 ]
18 .br
19   [
20 .IR               "--guiexe " "| " "--windows " "| " "--cuiexe " "| " "--console " "| " "--dll "
21 ]
22 .br
23   [
24 .IR               "-Dmacro[=defn] " "] [ " "-Idir " "] [ " "-Pdir " "] [ " "-idll" "] [ " "-Ldir " "] [ " "-llibrary "
25 ]
26 .br
27   [
28 .IR               "--nodlls " "] [ " "--nomsvcrt " "] [ " "--interactive " "] [ " "--single-target name "
29 ]
30 .br
31   [
32 .IR               "--generated-files " "] [ " "--nogenerated-files " "] 
33 ]
34 .br
35   [
36 .IR               "--wine64 " "]
37 .br
38 .IR               "work_directory" "| " "project_file" "| " "workspace_file"
39
40 .SH DESCRIPTION
41 .PP
42 .B winemaker
43 is a perl script designed to help you bootstrap the
44 process of converting your Windows sources to Winelib programs.
45 .PP
46 In order to do this winemaker can perform the following operations:
47 .PP
48 - rename your source files and directories to lowercase in the event they
49 got all uppercased during the transfer.
50 .PP
51 - perform Dos to Unix (CRLF to LF) conversions.
52 .PP
53 - scan the include statements and resource file references to replace the
54 backslashes with forward slashes.
55 .PP
56 - during the above step winemaker will also perform a case insensitive search
57 of the referenced file in the include path and rewrite the include statement
58 with the right case if necessary.
59 .PP
60 - winemaker will also check other more exotic issues like '#pragma pack'
61 usage, use of "afxres.h" in non MFC projects, and more. Whenever it
62 encounters something out of the ordinary, winemaker will warn you about it.
63 .PP
64 - winemaker can also scan a complete directory tree at once, guess what are
65 the executables and libraries you are trying to build, match them with
66 source files, and generate the corresponding Makefile.in files.
67 .PP
68 - finally winemaker will generate a global Makefile for normal use.
69 .PP
70 - winemaker knows about MFC-based project and will generate customized files.
71 .PP
72 - winemaker can read existing Projectfiles. It supports dsp, dsw, vcproj and sln files.
73 .PP
74 .SH OPTIONS
75 .TP
76 .I --nobanner
77 Disables the printing of the banner.
78 .TP
79 .I --backup
80 Directs winemaker to perform a backup of all the source files in which it
81 makes changes. This is the default.
82 .TP
83 .I --nobackup
84 Tells winemaker not to backup modified source files.
85 .TP
86 .I --nosource-fix
87 Directs winemaker not to try fixing the source files (e.g. Dos to Unix
88 conversion). This prevents complaints if the files are readonly.
89 .TP
90 .I --lower-all
91 Tells winemaker to rename all files and directories to lowercase.
92 .TP
93 .I --lower-uppercase
94 Tells winemaker to only rename files and directories that have an all
95 uppercase name.
96 So "HELLO.C" would be renamed but not "World.c".
97 .TP
98 .I --lower-none
99 Tells winemaker not to rename files and directories to lower case. Note
100 that this does not prevent the renaming of a file if its extension cannot
101 be handled as is, e.g. ".Cxx". This is the default.
102 .TP
103 .I "--lower-include "
104 Tells winemaker that if it does not find the file corresponding to an
105 include statement (or other form of file reference for resource files),
106 then it should convert that filename to lowercase. This is the default.
107 .TP
108 .I "--nolower-include "
109 Tells winemaker not to modify the include statement if it cannot find the
110 referenced file.
111 .TP
112 .IR "--guiexe " "| " "--windows"
113 Specifies that whenever winemaker finds an executable target, or a target of
114 unknown type, it should assume that it is a graphical application.
115 This is the default.
116 .TP
117 .IR "--cuiexe " "| " "--console"
118 Specifies that whenever winemaker finds an executable target, or a target of
119 unknown type, it should assume that it is a console application.
120 .TP
121 .I --dll
122 This option tells winemaker that whenever it finds a target of unknown type,
123 i.e. for which it does not know whether it is an executable or a library,
124 it should assume it is a library.
125 .TP
126 .I --mfc
127 Specifies that the targets are MFC based. In such a case winemaker the include 
128 and library paths accordingly, and links the target with the MFC library.
129 .TP
130 .I --nomfc
131 Specifies that targets are not MFC-based. This option disables use of MFC libraries
132 even if winemaker encounters files "stdafx.cpp" or "stdafx.h" that would cause it
133 to enable MFC automatically if neither --nomfc nor --mfc was specified.
134 .TP
135 .I -Dmacro[=defn]
136 Adds the specified macro definition to the global list of macro definitions.
137 .TP
138 .I -Idir
139 Appends the specified directory to the global include path.
140 .TP
141 .I -Pdir
142 Appends the specified directory to the global dll path.
143 .TP
144 .I -idll
145 Adds the Winelib library to the global list of Winelib libraries to import.
146 .TP
147 .I -Ldir
148 Appends the specified directory to the global library path.
149 .TP
150 .I -llibrary
151 Adds the specified library to the global list of libraries to link with.
152 .TP
153 .I --nodlls
154 This option tells winemaker not to use the standard set of winelib libraries
155 for imports. That is, any DLL your code uses must be explicitly passed to
156 winemaker with -i options.
157 The standard set of libraries is: odbc32.dll, odbccp32.dll, ole32.dll,
158 oleaut32.dll and winspool.drv.
159 .TP
160 .I --nomsvcrt
161 Sets some options to tell winegcc not to compile against msvcrt.
162 Use this option if you have cpp-files that include <string>.
163 .TP
164 .I --interactive
165 Puts winemaker in interactive mode. In this mode winemaker will ask you to
166 confirm each directory's list of targets, and then to provide directory and
167 target specific options.
168 .TP
169 .I --single-target name
170 Specifies that there is only one target, and that it is called "name".
171 .TP
172 .I --generated-files
173 Tells winemaker to generate the build the Makefile. This is the default.
174 .TP
175 .I --nogenerated-files
176 Tells winemaker not to generate the Makefile.
177 .TP
178 .I --wine64
179 Tells winemaker to generate a 64-bit Makefile.
180
181 .SH EXAMPLES
182 .PP
183 Here is a typical winemaker use:
184 .PP
185 $ winemaker --lower-uppercase -DSTRICT .
186 .PP
187 The above tells winemaker to scan the current directory and its
188 subdirectories for source files. Whenever if finds a file or directory which
189 name is all uppercase, it should rename it to lowercase. It should then fix
190 all these source files for compilation with Winelib and generate Makefiles.
191 The '-DSTRICT' specifies that the STRICT macro must be set when compiling
192 these sources. Finally winemaker will create a Makefile.
193 .PP
194 The next step would be:
195 .PP
196 $ make
197 .PP
198 If at this point you get compilation errors (which is quite likely for a
199 reasonably sized project) then you should consult the Winelib User Guide to
200 find tips on how to resolve them.
201 .PP
202 For an MFC-based project you would have to run the following commands instead:
203 .PP
204 $ winemaker --lower-uppercase --mfc .
205 .br
206 $ make
207 .PP
208 For an existing project-file you would have to run the following commands:
209 .PP
210 $ winemaker myproject.dsp
211 .br
212 $ make
213 .PP
214
215 .SH TODO / BUGS
216 .PP
217 In some cases you will have to edit the Makefile or sourcefiles by yourself.
218 .PP
219 Assuming that the windows executable/library is available, we could
220 use winedump to determine what kind of executable it is (graphical
221 or console), which libraries it is linked with, and which functions it
222 exports (for libraries). We could then restore all these settings for the
223 corresponding Winelib target.
224 .PP
225 Furthermore winemaker is not very good at finding the library containing the
226 executable: it must either be in the current directory or in the
227 .IR LD_LIBRARY_PATH .
228 .PP
229 Winemaker does not support message files and the message compiler yet.
230 .PP
231
232 .SH SEE ALSO
233 .PP
234 The Winelib User Guide:
235 .PP
236 http://www.winehq.org/docs/winelib-guide/index
237 .PP
238 .BR wine (1)
239 .PP
240
241 .SH AUTHORS
242 François Gouget for CodeWeavers
243 .PP
244 Dimitrie O. Paun
245 .PP
246 André Hentschel
247 .PP