1 demoobj = main.obj demo.obj screen.obj cfgopt.obj music.obj gfxutil.obj 3dgfx.obj &
3 scrobj = tunnel.obj fract.obj grise.obj polytest.obj plasma.obj
4 sysobj = gfx.obj vbe.obj dpmi.obj timer.obj keyb.obj mouse.obj logger.obj tinyfps.obj
5 obj = $(baseobj) $(demoobj) $(sysobj) $(scrobj)
8 libs = imago.lib mikmod.lib
10 def = -dM_PI=3.141592653589793
11 opt = -5 -fp5 -otexan -oh -oi -ei
15 incpath = -Isrc -Isrc/dos -Ilibs/imago/src -Ilibs/oldmik/src
16 libpath = libpath libs/imago libpath libs/oldmik
18 incpath = -Isrc -Isrc\dos -Ilibs\imago\src -Ilibs\oldmik\src
19 libpath = libpath libs\imago libpath libs\oldmik
26 CFLAGS = $(dbg) $(opt) $(def) -zq -bt=dos $(incpath)
28 LDFLAGS = option stack=16k option map $(libpath) library { $(libs) }
31 $(bin): cflags.occ $(obj) libs/imago/imago.lib
32 %write objects.lnk $(obj)
33 %write ldflags.lnk $(LDFLAGS)
34 $(LD) debug all name $@ system dos4g file { @objects } @ldflags
43 cxxflags.occ: Makefile
47 $(CC) -fo=$@ @cflags.occ $[*
50 $(CXX) -fo=$@ @cxxflags.occ $[*
53 $(AS) $(ASFLAGS) -o $@ $[*.asm