2 dosobj = src/dos/djdpmi.obj src/dos/gfx.obj src/dos/keyb.obj src/dos/logger.obj &
3 src/dos/main.obj src/dos/timer.obj src/dos/vbe.obj src/dos/vga.obj src/dos/watdpmi.obj
4 appobj = src/app.obj src/cmesh.obj src/darray.obj src/font.obj src/logger.obj &
5 src/meshgen.obj src/meshload.obj src/options.obj src/rbtree.obj src/rt.obj &
6 src/rtk.obj src/scene.obj src/scr_mod.obj src/scr_rend.obj src/util.obj
7 gawobj = src/gaw/gaw_sw.obj src/gaw/gawswtnl.obj src/gaw/polyclip.obj src/gaw/polyfill.obj
9 incpath = -Isrc -Isrc/dos -Ilibs -Ilibs/imago/src -Ilibs/treestor/include -Ilibs/drawtext
10 libpath = libpath libs/dos
12 dosobj = src\dos\djdpmi.obj src\dos\gfx.obj src\dos\keyb.obj src\dos\logger.obj &
13 src\dos\main.obj src\dos\timer.obj src\dos\vbe.obj src\dos\vga.obj src\dos\watdpmi.obj
14 appobj = src\app.obj src\cmesh.obj src\darray.obj src\font.obj src\logger.obj &
15 src\meshgen.obj src\meshload.obj src\options.obj src\rbtree.obj src\rt.obj &
16 src\rtk.obj src\scene.obj src\scr_mod.obj src\scr_rend.obj src\util.obj
17 gawobj = src\gaw\gaw_sw.obj src\gaw\gawswtnl.obj src\gaw\polyclip.obj src\gaw\polyfill.obj
19 incpath = -Isrc -Isrc\dos -Ilibs -Ilibs\imago\src -Ilibs\treestor\include -Ilibs\drawtext
20 libpath = libpath libs\dos
23 obj = $(dosobj) $(appobj) $(gawobj)
28 libs = imago.lib treestor.lib drawtext.lib
34 CFLAGS = -d3 -5 -fp5 $(opt) $(def) -s -zq -bt=dos $(incpath)
35 LDFLAGS = option map $(libpath) library { $(libs) }
37 $(bin): cflags.occ $(obj) $(libs)
38 %write objects.lnk $(obj)
39 %write ldflags.lnk $(LDFLAGS)
40 $(LD) debug all name $@ system dos4g file { @objects } @ldflags
42 .c: src;src/dos;src/gaw
43 .asm: src;src/dos;src/gaw
49 $(CC) -fo=$@ @cflags.occ $[*
52 nasm $(ASFLAGS) -o $@ $[*.asm
59 rm -f cflags.occ *.lnk