Commit fbbad0f1 authored by Alexandre Julliard's avatar Alexandre Julliard

makefiles: Always build 16-bit modules with msvcrt.

parent 024f9ebd
MODULE = avifile.dll16
IMPORTS = avifil32
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,avifil32.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,avifil32.dll
C_SRCS = \
main.c
MODULE = commdlg.dll16
IMPORTS = comdlg32 user32 gdi32
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,comdlg32.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,comdlg32.dll
C_SRCS = \
colordlg.c \
......
MODULE = compobj.dll16
IMPORTS = uuid ole32 advapi32
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,ole32.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,ole32.dll
C_SRCS = compobj.c
MODULE = ctl3d.dll16
IMPORTS = user32
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,ctl3d32.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,ctl3d32.dll
C_SRCS = ctl3d.c
MODULE = ctl3dv2.dll16
IMPORTS = user32
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,ctl3d32.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,ctl3d32.dll
C_SRCS = ctl3d.c
MODULE = ddeml.dll16
IMPORTS = user32
EXTRADLLFLAGS = -m16 -mno-cygwin
EXTRADLLFLAGS = -m16
C_SRCS = ddeml.c
MODULE = dispdib.dll16
EXTRADLLFLAGS = -m16 -mno-cygwin
EXTRADLLFLAGS = -m16
C_SRCS = dispdib.c
MODULE = display.drv16
IMPORTS = user32
EXTRADLLFLAGS = -m16 -mno-cygwin
EXTRADLLFLAGS = -m16
C_SRCS = display.c
......
MODULE = gdi.exe16
IMPORTS = user32 advapi32 gdi32
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,gdi32.dll,--heap,65520
EXTRADLLFLAGS = -m16 -Wb,--main-module,gdi32.dll,--heap,65520
C_SRCS = \
bidi.c \
......
MODULE = keyboard.drv16
IMPORTS = user32
EXTRADLLFLAGS = -m16 -mno-cygwin
EXTRADLLFLAGS = -m16
C_SRCS = keyboard.c
......@@ -2,7 +2,7 @@ MODULE = krnl386.exe16
IMPORTLIB = kernel
IMPORTS = kernel32 ntdll winecrt0
DELAYIMPORTS = user32
EXTRADLLFLAGS = -m16 -mno-cygwin -nodefaultlibs -Wb,--dll-name,kernel
EXTRADLLFLAGS = -m16 -nodefaultlibs -Wb,--dll-name,kernel
C_SRCS = \
atom.c \
......
MODULE = lzexpand.dll16
IMPORTS = lz32
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,lz32.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,lz32.dll
C_SRCS = lzexpand.c
MODULE = mmsystem.dll16
IMPORTS = winmm user32
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,winmm.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,winmm.dll
C_SRCS = \
driver.c \
......
MODULE = mouse.drv16
IMPORTS = user32
EXTRADLLFLAGS = -m16 -mno-cygwin
EXTRADLLFLAGS = -m16
C_SRCS = mouse.c
......
MODULE = msacm.dll16
IMPORTS = msacm32
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,msacm32.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,msacm32.dll
C_SRCS = msacm.c
MODULE = msvideo.dll16
IMPORTS = msvfw32 version advapi32 user32
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,msvfw32.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,msvfw32.dll
C_SRCS = msvideo16.c
MODULE = ole2.dll16
IMPORTS = uuid ole32 user32 gdi32
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,ole32.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,ole32.dll
C_SRCS = \
memlockbytes.c \
......
MODULE = ole2disp.dll16
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,oleaut32.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,oleaut32.dll
C_SRCS = ole2disp.c
MODULE = ole2nls.dll16
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,ole32.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,ole32.dll
C_SRCS = ole2nls.c
......
MODULE = olecli.dll16
IMPORTS = gdi32
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,olecli32.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,olecli32.dll
C_SRCS = olecli.c
MODULE = olesvr.dll16
IMPORTS = gdi32
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,olesvr32.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,olesvr32.dll
C_SRCS = olesvr.c
MODULE = setupx.dll16
IMPORTS = setupapi user32 advapi32
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,setupapi.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,setupapi.dll
C_SRCS = \
devinst16.c \
......
MODULE = shell.dll16
IMPORTS = shell32 user32 gdi32 advapi32
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,shell32.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,shell32.dll
C_SRCS = shell.c
......
MODULE = sound.drv16
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,winmm.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,winmm.dll
C_SRCS = sound.c
MODULE = storage.dll16
IMPORTS = uuid ole32
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,ole32.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,ole32.dll
C_SRCS = storage.c
MODULE = stress.dll16
EXTRADLLFLAGS = -m16 -mno-cygwin
EXTRADLLFLAGS = -m16
C_SRCS = stress.c
MODULE = system.drv16
EXTRADLLFLAGS = -m16 -mno-cygwin
EXTRADLLFLAGS = -m16
C_SRCS = system.c
MODULE = toolhelp.dll16
EXTRADLLFLAGS = -m16 -mno-cygwin
EXTRADLLFLAGS = -m16
C_SRCS = toolhelp.c
MODULE = twain.dll16
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,twain_32.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,twain_32.dll
C_SRCS = twain.c
MODULE = typelib.dll16
IMPORTS = oleaut32 advapi32
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,oleaut32.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,oleaut32.dll
C_SRCS = typelib.c
MODULE = user.exe16
IMPORTS = mpr user32 gdi32
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,user32.dll,--heap,65520
EXTRADLLFLAGS = -m16 -Wb,--main-module,user32.dll,--heap,65520
C_SRCS = \
bidi.c \
......
MODULE = ver.dll16
IMPORTS = version lz32
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,version.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,version.dll
C_SRCS = version.c
MODULE = w32sys.dll16
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,w32skrnl.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,w32skrnl.dll
C_SRCS = w32sys.c
MODULE = win32s16.dll16
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,w32skrnl.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,w32skrnl.dll
C_SRCS = win32s16.c
MODULE = win87em.dll16
EXTRADLLFLAGS = -m16 -mno-cygwin
EXTRADLLFLAGS = -m16
C_SRCS = win87em.c
MODULE = winaspi.dll16
IMPORTS = wnaspi32 advapi32
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,wnaspi32.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,wnaspi32.dll
C_SRCS = winaspi.c
MODULE = windebug.dll16
EXTRADLLFLAGS = -m16 -mno-cygwin
EXTRADLLFLAGS = -m16
C_SRCS = windebug.c
MODULE = wineps16.drv16
IMPORTS = winspool
EXTRADLLFLAGS = -m16 -mno-cygwin
EXTRADLLFLAGS = -m16
C_SRCS = driver.c
MODULE = wing.dll16
IMPORTS = gdi32
EXTRADLLFLAGS = -m16 -mno-cygwin
EXTRADLLFLAGS = -m16
C_SRCS = wing.c
MODULE = winnls.dll16
IMPORTS = winnls32
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,winnls32.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,winnls32.dll
C_SRCS = winnls.c
MODULE = winsock.dll16
IMPORTS = ws2_32
DELAYIMPORTS = user32
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,ws2_32.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,ws2_32.dll
C_SRCS = socket.c
MODULE = wintab.dll16
EXTRADLLFLAGS = -m16 -mno-cygwin -Wb,--main-module,wintab32.dll
EXTRADLLFLAGS = -m16 -Wb,--main-module,wintab32.dll
C_SRCS = wintab.c
MODULE = rundll.exe16
EXTRADLLFLAGS = -mconsole -m16 -mno-cygwin
EXTRADLLFLAGS = -mconsole -m16
C_SRCS = rundll.c
MODULE = winhelp.exe16
EXTRADLLFLAGS = -mconsole -m16 -mno-cygwin
EXTRADLLFLAGS = -mconsole -m16
C_SRCS = winhelp.c
MODULE = winoldap.mod16
EXTRADLLFLAGS = -mconsole -m16 -mno-cygwin
EXTRADLLFLAGS = -mconsole -m16
C_SRCS = winoldap.c
......@@ -4204,12 +4204,12 @@ static void load_sources( struct makefile *make )
if (make->module && strendswith( make->module, ".a" )) make->staticlib = make->module;
if ((make->module && make->staticlib) || make->testdll)
strarray_add( &make->extradllflags, "-mno-cygwin" );
make->is_win16 = strarray_exists( &make->extradllflags, "-m16" );
if ((make->module && make->staticlib) || make->testdll || make->is_win16)
strarray_add_uniq( &make->extradllflags, "-mno-cygwin" );
strarray_addall( &make->extradllflags, get_expanded_make_var_array( make, "APPMODE" ));
make->disabled = make->base_dir && strarray_exists( &disabled_dirs, make->base_dir );
make->is_win16 = strarray_exists( &make->extradllflags, "-m16" );
make->use_msvcrt = strarray_exists( &make->extradllflags, "-mno-cygwin" );
make->is_exe = strarray_exists( &make->extradllflags, "-mconsole" ) ||
strarray_exists( &make->extradllflags, "-mwindows" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment