WINEBUILD(1) Wine Developers Manual WINEBUILD(1) (NAME) winebuild - dll (SYNOPSIS) winebuild [options] [inputfile...] (DESCRIPTION) winebuild dll dll (Win32) . winebuild . . (OPTIONS) . (MODE OPTIONS) winebuild . --dll .spec ( SPEC FILE SYNTAX ) .def . .spec/.def -E . dll . input files dll winebuild dll . --exe . --dll .spec/.def . .spec/.def -E . .spec/.def -F . input files . --def .def spec. .spec -E . dll PE (Win32) . --implib .a spec. .spec -E . .delay.a . --staticlib .a . --resources .o . PE binutils PE . spec .o . --builtin PE "Wine builtin DLL" DOS. --fixup-ctors . .so . (OPTIONS) --as-cmd=as-command as . -b, --target=cpu-manufacturer[-kernel]-os . autoconf config.sub . -B directory binutils as nm ld . --cc-cmd=cc-command C --as-cmd . --data-only . winebuild PE . -d, --delay-lib=name -l . . -D symbol C . --disable-dynamicbase (ASLR) . 'ASLR' . -e, --entry=function DllMain dll main ( main C WinMain ). Win32 . -E, --export=filename .spec ( SPEC FILE SYNTAX ) .def DLL . --external-symbols spec . dll dll ( dll forward ). -f option . -fPIC -fasynchronous-unwind-tables . C . --fake-module PE dll exe . PE . -F, --filename=filename . spec ( ) . -h, --help . -H, --heap=size ( Win16 ) . -I directory C . -k, --kill-at stdcall .def . --def . -K flags C . --large-address-aware . --ld-cmd=ld-command ld . -m16, -m32, -m64 . -march=option, -mcpu=option, -mfpu=option . -mno-cygwin C . -M, --main-module=module dll module . dll . -N, --dll-name=dllname . Win16 . spec ( ) . KERNEL KRNL386.EXE . . --nm-cmd=nm-command nm . --nxcompat=yes|no no-exec . yes . -o, --output=file ( ). .o .o . --prefer-native DLL . . -r, --res=rsrc.res . rsrc.res wrc(1) ( ) . Win16 Win32 input files ( -r Win32 ). --safeseh SEH. --save-temps winebuild . --strip-cmd=strip-command PE . --builtin . --subsystem=subsystem[:major[.minor]] : console windows native dll wince dll CE. C main . wmain . WinMain . 4.0 . -u, --undefined=symbol symbol . . -v, --verbose winebuild . --version . -w, --warnings . --without-dlltool dlltool. (SPEC FILE SYNTAX) (General syntax) spec . : ordinal functype [flags] exportname ( [args...] ) [handler] ordinal variable [flags] exportname ( [data...] ) ordinal extern [flags] exportname [symbolname] ordinal stub [flags] exportname [ (args...) ] ordinal equate [flags] exportname data # comments . # . ordinal '@' ( Win32). flags '-' . : -norelay ( Win32). -noname . . -ret16 ( Win16). -ret64 ( Win32). -register CPU . -private dll GetProcAddress . -ordinal . . -thiscall thiscall ( %ecx i386). -fastcall fastcall ( %ecx/%edx i386). -syscall[=number] NT . __wine_syscall_dispatcher ntdll . 0 . -import . forward dll . -arch=[!]cpu[,cpu] () CPU . win32 win64 CPU . dll -arch=win32 . CPU ! . (Function ordinals) : ordinal functype [flags] exportname ( [args...] ) [handler] . exportname ( [args...] ) . exportname '@' - . functype : stdcall Win32 pascal Win16 cdecl Win16 Win32 C varargs Win16 Win32 C args : word ( ) s_word ( ) long ( ) int64 ( ) int128 ( ) float ( ) double ( ) ptr ( ) str ( ASCII ) wstr ( Unicode ) segptr ( ) segstr ( ASCII ). : Win16 . handler C . dllname.function ( dll ) . handler exportname . ()GetFocus : @ stdcall GetFocus() GetFocus ()CreateWindow ( 100 ) : 100 pascal CreateWindow(ptr ptr long s_word s_word s_word \ s_word word word word ptr) WIN_CreateWindow varargs C '...' Win32 VA_LIST16 Win16 . *wsprintf user.exe.spec user32.spec . (Variable ordinals) : ordinal variable [flags] exportname ( [data...] ) . exportname . data "0x" . VariableA 2 int : 2 variable VariableA(-1 0xff 0 0) spec Win16 . Win32 extern ( ). (Extern ordinals) : ordinal extern [flags] exportname [symbolname] C ( ) . spec Win32 . exportname symbolname C . dllname.symbolname ( dll ) . symbolname exportname . (Stub ordinals) : ordinal stub [flags] exportname [ (args...) ] . . (Equate ordinals) : ordinal equate [flags] exportname data . exportname . data "0x" . (Api sets) : apiset apiset_dll = target.dll [host.dll:target.dll] apiset_dll ( api-ms-*) target dll . dll . : api-ms-win-core-processenvironment-l1-1-0 = kernelbase.dll api-ms-win-core-processthreads-l1-1-0 = kernel32.dll \ kernel32.dll:kernelbase.dll apiset .apiset PE . --data-only . (AUTHORS) winebuild . Robert J. Amstadt Alexandre Julliard Martin von Loewis Ulrich Weigand Eric Youngdale. . . (BUGS) dll PE dll . . (AVAILABILITY) winebuild WineHQ . (SEE ALSO) wine(1), winegcc(1), wrc(1), . Wine 11.17 October 2005 WINEBUILD(1)