2 dosobj = src/dos/main.obj src/dos/keyb.obj src/dos/mouse.obj src/dos/timer.obj &
3 src/dos/cdpmi.obj src/dos/vidsys.obj src/dos/drv_vga.obj src/dos/drv_vbe.obj &
5 appobj = src/app.obj src/logger.obj src/menuscr.obj
6 rtkobj = src/rtk.obj src/rtk_draw.obj
8 incpath = -Isrc -Isrc/dos
10 dosobj = src\dos\main.obj src\dos\keyb.obj src\dos\mouse.obj src\dos\timer.obj &
11 src\dos\cdpmi.obj src\dos\vidsys.obj src\dos\drv_vga.obj src\dos\drv_vbe.obj &
13 appobj = src\app.obj src\logger.obj src\menuscr.obj
14 rtkobj = src\rtk.obj src\rtk_draw.obj
16 incpath = -Isrc -Isrc\dos
19 obj = $(dosobj) $(appobj) $(rtkobj)
28 CFLAGS = -d3 $(opt) $(def) -s -zq -bt=dos $(incpath)
29 #LDFLAGS = option map $(libpath) library { $(libs) }
31 $(bin): cflags.occ $(obj) $(libs)
32 %write objects.lnk $(obj)
33 %write ldflags.lnk $(LDFLAGS)
34 $(LD) debug all name $@ system dos4g file { @objects } @ldflags
43 $(CC) -fo=$@ @cflags.occ $[*
46 nasm $(ASFLAGS) -o $@ $[*.asm
53 rm -f cflags.occ *.lnk