winebuild-stable --version (return code: 0)
winebuild version 2.0.2
winebuild-stable --help (return code: 0)
Usage: winebuild [OPTIONS] [FILES]
Options:
--as-cmd=AS Command to use for assembling (default: as)
-b, --target=TARGET Specify target CPU and platform for cross-compiling
--cc-cmd=CC C compiler to use for assembling (default: fall back to --as-cmd)
-d, --delay-lib=LIB Import the specified library in delayed mode
-D SYM Ignored for C flags compatibility
-e, --entry=FUNC Set the DLL entry point function (default: DllMain)
-E, --export=FILE Export the symbols defined in the .spec or .def file
--external-symbols Allow linking to external symbols
-f FLAGS Compiler flags (-fPIC and -fasynchronous-unwind-tables are supported)
-F, --filename=DLLFILE Set the DLL filename (default: from input file name)
--fake-module Create a fake binary module
-h, --help Display this help message
-H, --heap=SIZE Set the heap size for a Win16 dll
-I DIR Ignored for C flags compatibility
-k, --kill-at Kill stdcall decorations in generated .def files
-K, FLAGS Compiler flags (only -KPIC is supported)
--large-address-aware Support an address space larger than 2Gb
--ld-cmd=LD Command to use for linking (default: ld)
-l, --library=LIB Import the specified library
-L, --library-path=DIR Look for imports libraries in DIR
-m16, -m32, -m64 Force building 16-bit, 32-bit resp. 64-bit code
-M, --main-module=MODULE Set the name of the main module for a Win16 dll
--nm-cmd=NM Command to use to get undefined symbols (default: nm)
--nxcompat=y|n Set the NX compatibility flag (default: yes)
-N, --dll-name=DLLNAME Set the DLL name (default: from input file name)
-o, --output=NAME Set the output file name (default: stdout)
-r, --res=RSRC.RES Load resources from RSRC.RES
--save-temps Do not delete the generated intermediate files
--subsystem=SUBSYS Set the subsystem (one of native, windows, console, wince)
-u, --undefined=SYMBOL Add an undefined reference to SYMBOL when linking
-v, --verbose Display the programs invoked
--version Print the version and exit
-w, --warnings Turn on warnings
Mode options:
--dll Build a .c file from a .spec or .def file
--def Build a .def file from a .spec file
--exe Build a .c file for an executable
--implib Build an import library
--resources Build a .o file for the resource files
The mode options are mutually exclusive; you must specify one and only one.