aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-04-02 01:14:57 +0200
committerJavier <dev.git@javispedro.com>2022-04-02 01:14:57 +0200
commit3e39df4a4185f947d1af564aca265c0f6b51c9ec (patch)
tree453b4c1cb56cf029ebe96a02f91075912e64d0eb /makefile
parenta816d1a09b1045fb5c155ac73f3231fcf9d93180 (diff)
downloadvbados-3e39df4a4185f947d1af564aca265c0f6b51c9ec.tar.gz
vbados-3e39df4a4185f947d1af564aca265c0f6b51c9ec.zip
implement graphic cursor for CGA modes, wheel mouse detection, int2f hooking, simplify w16 driver
Diffstat (limited to 'makefile')
-rw-r--r--makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/makefile b/makefile
index 14e60bc..2f4d78a 100644
--- a/makefile
+++ b/makefile
@@ -2,15 +2,17 @@
# Assuming you have sourced `owsetenv` beforehand.
#
dosobjs = dostsr.obj dosmain.obj vbox.obj
-doscflags = -bt=dos -ms -s -6 -os -w3
-# -ms to use small memory model
-# -s to disable stack checks, since it inserts calls to the runtime from the TSR part
+doscflags = -bt=dos -ms -6 -os -w3
+# -ms to use small memory model (though sometimes ss != ds...)
# -os to optimize for size
+dostsrcflags = -zu -s -g=RES_GROUP -nd=RES -nt=RES_TEXT -nc=RES_CODE
+# -s to disable stack checks, since it inserts calls to the runtime from the TSR part
+# -zu since ss != ds on the TSR
w16objs = w16mouse.obj
w16cflags = -bt=windows -bd -mc -zu -s -6 -w3
# -bd to build DLL
-# -mc to use compact memory model (far data pointers, since ss != ds)
+# -mc to use compact memory model (far data pointers, ss != ds always)
# -zu for DLL calling convention (ss != ds)
# -s to disable stack checks, since the runtime uses MessageBox() to abort (which we can't call from mouse.drv)
@@ -23,13 +25,13 @@ vbmouse.exe: dosmouse.lnk $(dosobjs)
wlink @$[@ name $@ file { $(dosobjs) }
dostsr.obj: dostsr.c .AUTODEPEND
- wcc -fo=$^@ $(doscflags) -g=RES_GROUP -nd=RES -nt=RES_TEXT -nc=RES_CODE $[@
+ wcc -fo=$^@ $(doscflags) $(dostsrcflags) $[@
dosmain.obj: dosmain.c .AUTODEPEND
wcc -fo=$^@ $(doscflags) $[@
vbox.obj: vbox.c .AUTODEPEND
- wcc -fo=$^@ $(doscflags) $[@
+ wcc -fo=$^@ $(doscflags) $[@
vbmouse.drv: w16mouse.lnk $(w16objs)
wlink @$[@ name $@ file { $(w16objs) }