From 3e39df4a4185f947d1af564aca265c0f6b51c9ec Mon Sep 17 00:00:00 2001 From: Javier Date: Sat, 2 Apr 2022 01:14:57 +0200 Subject: implement graphic cursor for CGA modes, wheel mouse detection, int2f hooking, simplify w16 driver --- makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'makefile') 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) } -- cgit v1.2.3