diff options
author | Javier <dev.git@javispedro.com> | 2022-04-11 04:36:49 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2022-04-11 04:36:49 +0200 |
commit | 19231982b2f374aed286f4697aebd3fb9fda05d8 (patch) | |
tree | 1922eaf34af3d904ce0f75c0e812e8da8e0d38d4 /makefile | |
parent | 970f90228a6978712c28529437721caffec76202 (diff) | |
download | vbados-19231982b2f374aed286f4697aebd3fb9fda05d8.tar.gz vbados-19231982b2f374aed286f4697aebd3fb9fda05d8.zip |
add new virtualbox shared folders client
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 23 |
1 files changed, 19 insertions, 4 deletions
@@ -4,6 +4,8 @@ mousedosobjs = mousetsr.obj mousmain.obj vbox.obj mousew16objs = mousew16.obj +sfdosobjs = sftsr.obj sfmain.obj vbox.obj + doscflags = -bt=dos -ms -6 -osi -w3 -wcd=202 # -ms to use small memory model (though sometimes ss != ds...) # -osi to optimize for size, put intrinsics inline (to avoid runtime calls) @@ -23,7 +25,9 @@ w16cflags = -bt=windows -bd -mc -zu -s -6 -oi -w3 -wcd=202 # We need DOS and Windows headers, not host platform's set include=$(%watcom)/h/win;$(%watcom)/h -# Main DOS driver file +all: vbmouse.exe vbmouse.drv vbsf.exe .SYMBOLIC + +# DOS mouse driver vbmouse.exe: vbmouse.lnk $(mousedosobjs) wlink @$[@ name $@ file { $(mousedosobjs) } @@ -36,19 +40,30 @@ mousmain.obj: mousmain.c .AUTODEPEND vbox.obj: vbox.c .AUTODEPEND wcc -fo=$^@ $(doscflags) $[@ +# Windows 3.x mouse driver vbmouse.drv: mousew16.lnk $(mousew16objs) wlink @$[@ name $@ file { $(mousew16objs) } mousew16.obj: mousew16.c .AUTODEPEND wcc -fo=$^@ $(w16cflags) $[@ +# DOS shared folders +vbsf.exe: vbsf.lnk $(sfdosobjs) + wlink @$[@ name $@ file { $(sfdosobjs) } + +sfmain.obj: sfmain.c .AUTODEPEND + wcc -fo=$^@ $(doscflags) $[@ + +sftsr.obj: sftsr.c .AUTODEPEND + wcc -fo=$^@ $(doscflags) $(dostsrcflags) $[@ + clean: .SYMBOLIC - rm -f vbmouse.exe vbmouse.drv vbmouse.flp *.obj *.map + rm -f vbmouse.exe vbmouse.drv vbsf.exe vbmouse.flp *.obj *.map vbmouse.flp: mformat -C -f 1440 -v VBMOUSE -i $^@ :: # Build a floppy image containing the driver -flp: vbmouse.flp vbmouse.exe vbmouse.drv oemsetup.inf .SYMBOLIC - mcopy -i vbmouse.flp -o vbmouse.exe vbmouse.drv oemsetup.inf :: +flp: vbmouse.flp vbmouse.exe vbmouse.drv oemsetup.inf vbsf.exe .SYMBOLIC + mcopy -i vbmouse.flp -o vbmouse.exe vbmouse.drv oemsetup.inf vbsf.exe :: |