1 obj = 3dgfx.obj bsptree.obj bump.obj cfgopt.obj demo.obj djdpmi.obj dynarr.obj &
2 fract.obj gfx.obj gfxutil.obj greets.obj grise.obj hairball.obj infcubes.obj &
3 keyb.obj logger.obj main.obj mesh.obj meshload.obj metaball.obj metasurf.obj &
4 mouse.obj music.obj noise.obj plasma.obj polyclip.obj polyfill.obj polytest.obj &
5 rbtree.obj sball.obj screen.obj smoketxt.obj thunder.obj tilemaze.obj timer.obj &
6 tinyfps.obj treestor.obj ts_text.obj tunnel.obj util.obj vbe.obj vga.obj
10 libs = imago.lib anim.lib
12 def = -dM_PI=3.141592653589793 -dUSE_HLT
13 opt = -5 -fp5 -otexan -oh -oi -ei
17 incpath = -Isrc -Isrc/dos -Ilibs -Ilibs/imago/src -Ilibs/anim/src
18 libpath = libpath libs/imago libpath libs/anim
21 incpath = -Isrc -Isrc\dos -Ilibs -Ilibs\imago\src -Ilibs\anim\src
22 libpath = libpath libs\imago libpath libs\anim
30 CFLAGS = $(dbg) $(opt) $(def) -zq -bt=dos $(incpath)
32 LDFLAGS = option stack=16k option map $(libpath) library { $(libs) }
35 $(bin): cflags.occ $(obj) libs/imago/imago.lib
36 %write objects.lnk $(obj)
37 %write ldflags.lnk $(LDFLAGS)
38 $(LD) debug all name $@ system dos4g file { @objects } @ldflags
40 .c: src;src/dos;src/scr
41 .cc: src;src/dos;src/scr
42 .asm: src;src/dos;src/scr
47 cxxflags.occ: Makefile
51 $(CC) -fo=$@ @cflags.occ $[*
54 $(CXX) -fo=$@ @cxxflags.occ $[*
57 $(AS) $(ASFLAGS) -o $@ $[*.asm