1 demoobj = main.obj demo.obj screen.obj cfgopt.obj music.obj gfxutil.obj &
2 3dgfx.obj polyfill.obj polyclip.obj metasurf.obj dynarr.obj
3 scrobj = tunnel.obj fract.obj grise.obj polytest.obj plasma.obj bump.obj &
4 thunder.obj metaball.obj
5 sysobj = gfx.obj vbe.obj watdpmi.obj timer.obj keyb.obj mouse.obj sball.obj &
7 obj = $(baseobj) $(demoobj) $(sysobj) $(scrobj)
10 libs = imago.lib mikmod.lib
12 def = -dM_PI=3.141592653589793
13 opt = -5 -fp5 -otexan -oh -oi -ei
17 incpath = -Isrc -Isrc/dos -Ilibs/imago/src -Ilibs/oldmik/src
18 libpath = libpath libs/imago libpath libs/oldmik
21 incpath = -Isrc -Isrc\dos -Ilibs\imago\src -Ilibs\oldmik\src
22 libpath = libpath libs\imago libpath libs\oldmik
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
47 cxxflags.occ: Makefile
51 $(CC) -fo=$@ @cflags.occ -zu $[*
54 $(CC) -fo=$@ @cflags.occ $[*
57 $(CXX) -fo=$@ @cxxflags.occ $[*
60 $(AS) $(ASFLAGS) -o $@ $[*.asm