diff options
| author | Javier <dev.git@javispedro.com> | 2026-11-30 12:53:58 +0100 |
|---|---|---|
| committer | Javier <dev.git@javispedro.com> | 2026-11-30 12:53:58 +0100 |
| commit | 9f46f39f48d3acf4806473b331b654111a6e2084 (patch) | |
| tree | 047142a32fda5820ff3f00851903afe33ec3359c /makefile | |
| parent | 2938a67c400930d2d5e6f23bb8e13b1ec3b99000 (diff) | |
| download | vbados-9f46f39f48d3acf4806473b331b654111a6e2084.tar.gz vbados-9f46f39f48d3acf4806473b331b654111a6e2084.zip | |
mousew16: found a way to use the same binary in both 2.x and >3.x
What was missing is to use mark.exe (same as the MEMORY option in wlink)
to mark the 2.0 executable as being "protected mode compatible".
Thanks to Pietrek's Windows Internals book and their description of
what LoadModule is doing.
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -64,17 +64,13 @@ mousmain.obj: mousmain.c .AUTODEPEND $(compile_dos) # Windows 3.x mouse driver -vbmouse.drv: mousew16.lnk $(mousew16_objs) +vbmouse.drv: mousew16.lnk dosstub.exe $(mousew16_objs) *wlink @$[@ name $@ file { $(mousew16_objs) } mousew16.obj: mousew16.c .AUTODEPEND $(compile_w16dll) -# Windows 2.x version -# TODO 2.x setup.exe expects an exactly 400byte long stub (option stub=...) -vbmouse2.drv: mousew16.lnk mousew2.lnk dosstub.exe $(mousew16_objs) - *wlink @mousew16.lnk @mousew2.lnk name $@ file { $(mousew16_objs) } - +# stub/fake DOS exec header used in vbmouse.drv, see mousew16.lnk dosstub.exe: dosstub.asm .AUTODEPEND *wcl -fo=$^@ $[@ -\"option fullheader\" |
