From 6def163aa0a11996d2f990fb18690a83b5e605a6 Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 2 Jun 2024 20:54:46 +0200 Subject: add new moustest program for testing --- makefile | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index 907a8e5..c6dc7e5 100644 --- a/makefile +++ b/makefile @@ -2,7 +2,7 @@ # Assuming you have sourced `owsetenv` beforehand. # All binaries to build -bins = vbmouse.exe vbsf.exe vbmouse.drv +bins = vbmouse.exe vbsf.exe vbmouse.drv moustest.exe # Inf files infs = oemsetup.inf @@ -16,7 +16,7 @@ sfdos_objs = sftsr.obj sfmain.obj kitten.obj vbox.obj # Compiler arguments for DOS dos_cflags = -bt=dos -ms -6 -osi -w3 -wcd=202 -# -ms to use small memory model (though sometimes ss != ds...) +# -ms to use small memory model (this assumes ss == ds) # -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) @@ -78,6 +78,15 @@ vbox.obj: vbox.c .AUTODEPEND kitten.obj: kitten.c .AUTODEPEND $(compile_dos) +# Test programs +moustest_objs = moustest.obj + +moustest.exe: moustest.obj + *wlink system dos name $@ file { $(moustest_objs) } + +moustest.obj: moustest.c .AUTODEPEND + $(compile_dos) -mc -zu + # Other targets clean: .SYMBOLIC rm -f vbmouse.exe vbmouse.drv vbsf.exe vbados.flp *.obj *.map -- cgit v1.2.3