|
NAMEwinemaker - generate a build infrastructure for compiling Windows programs on UnixSYNOPSISwinemaker [ --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 DESCRIPTIONwinemaker is a perl script designed to help you bootstrap the process of converting your Windows sources to Winelib programs.In order to do this winemaker can perform the following operations: - rename your source files and directories to lowercase in the event they got all uppercased during the transfer. - perform DOS to Unix (CRLF to LF) conversions. - scan the include statements and resource file references to replace the backslashes with forward slashes. - 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 with the right case if necessary. - winemaker will also check other more exotic issues like #pragma pack usage, use of afxres.h in non MFC projects, and more. Whenever it encounters something out of the ordinary, it will warn you about it. - 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 source files, and generate the corresponding Makefile. - finally winemaker will generate a global Makefile for normal use. - winemaker knows about MFC-based project and will generate customized files. - winemaker can read existing project files. It supports dsp, dsw, vcproj and sln files. OPTIONS
EXAMPLESHere is 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) 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 .
For an existing project-file you would have to run the following commands: $ winemaker myproject.dsp
TODO / BUGSIn some cases you will have to edit the Makefile or source files manually.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. 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. AUTHORSFrançois Gouget for CodeWeaversDimitrie O. Paun André Hentschel AVAILABILITYwinemaker is part of the Wine distribution, which is available through WineHQ, the Wine development headquarters.SEE ALSOwine(1),Wine documentation and support.
Visit the GSP FreeBSD Man Page Interface. |