aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-04-03 22:58:39 +0200
committerJavier <dev.git@javispedro.com>2022-04-03 22:58:39 +0200
commitf9b0699da8adb44fd91640180a7b70639a43449b (patch)
tree81fcbd285a306b85f21086d1c7d37e77af71ed12 /makefile
parent71f66c759930ce22f099ad1631f05ddb3e0ccd8a (diff)
downloadvbados-f9b0699da8adb44fd91640180a7b70639a43449b.tar.gz
vbados-f9b0699da8adb44fd91640180a7b70639a43449b.zip
replace some custom asm utils with watcom intrinsincs
Diffstat (limited to 'makefile')
-rw-r--r--makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/makefile b/makefile
index 2f4d78a..f91b552 100644
--- a/makefile
+++ b/makefile
@@ -2,15 +2,16 @@
# Assuming you have sourced `owsetenv` beforehand.
#
dosobjs = dostsr.obj dosmain.obj vbox.obj
-doscflags = -bt=dos -ms -6 -os -w3
+doscflags = -bt=dos -ms -6 -os -oi -w3
# -ms to use small memory model (though sometimes ss != ds...)
# -os to optimize for size
+# -oi to put intrinsics online (don't use them much)
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
+w16cflags = -bt=windows -bd -mc -zu -s -6 -oi -w3
# -bd to build DLL
# -mc to use compact memory model (far data pointers, ss != ds always)
# -zu for DLL calling convention (ss != ds)
@@ -46,6 +47,6 @@ vbmouse.flp:
mformat -C -f 1440 -v VBMOUSE -i $^@ ::
# Build a floppy image containing the driver
-flp: vbmouse.flp vbmouse.exe vbmouse.drv .SYMBOLIC
- mcopy -i vbmouse.flp -o vbmouse.exe vbmouse.drv ::
+flp: vbmouse.flp vbmouse.exe vbmouse.drv oemsetup.inf .SYMBOLIC
+ mcopy -i vbmouse.flp -o vbmouse.exe vbmouse.drv oemsetup.inf ::