aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-04-06 14:26:59 +0200
committerJavier <dev.git@javispedro.com>2022-04-06 14:26:59 +0200
commitdb308ca65b8f0ddb61969e7e4b4fb2145d8a27c2 (patch)
tree54617379a4cb9c149390ae909d9a02f5cfbf9222
parentca5128008df77599a6a993caa550e0502d95ef8d (diff)
downloadvbados-db308ca65b8f0ddb61969e7e4b4fb2145d8a27c2.tar.gz
vbados-db308ca65b8f0ddb61969e7e4b4fb2145d8a27c2.zip
minor makefile comments
-rw-r--r--makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/makefile b/makefile
index 81c51cd..a10e671 100644
--- a/makefile
+++ b/makefile
@@ -2,10 +2,11 @@
# Assuming you have sourced `owsetenv` beforehand.
#
dosobjs = dostsr.obj dosmain.obj vbox.obj
-doscflags = -bt=dos -ms -6 -os -oi -w3 -wcd=202
+doscflags = -bt=dos -ms -6 -osi -w3 -wcd=202
# -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)
+# -osi to optimize for size, put intrinsics inline (to avoid runtime calls)
+# -w3 enables warnings
+# -wcd=202 disables the unreferenced function warning (e.g., for inline functions in headers)
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
@@ -13,7 +14,7 @@ dostsrcflags = -zu -s -g=RES_GROUP -nd=RES -nt=RES_TEXT -nc=RES_CODE
w16objs = w16mouse.obj
w16cflags = -bt=windows -bd -mc -zu -s -6 -oi -w3 -wcd=202
# -bd to build DLL
-# -mc to use compact memory model (far data pointers, ss != ds always)
+# -mc to use compact memory model (far data pointers, ss != ds in a DLL)
# -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)