2 demoobj = demo.obj screen.obj gfxutil.obj 3dgfx.obj polyfill.obj
3 scrobj = tunnel.obj fract.obj grise.obj polytest.obj
4 sysobj = gfx.obj vbe.obj dpmi.obj timer.obj keyb.obj mouse.obj logger.obj
5 obj = $(baseobj) $(demoobj) $(sysobj) $(scrobj)
10 def = -dM_PI=3.141592653589793
11 opt = -5 -fp5 -otexan -oh -oi -ei
15 incpath = -Isrc -Isrc/dos -Ilibs/imago/src
18 incpath = -Isrc -Isrc\dos -Ilibs\imago\src
26 CFLAGS = $(dbg) $(opt) $(def) -zq -bt=dos $(incpath)
28 LDFLAGS = libpath $(libpath) library { $(libs) }
31 $(bin): cflags.occ $(obj) libs/imago/imago.lib
32 %write objects.lnk $(obj)
33 $(LD) debug all name $@ system dos4g file { @objects } $(LDFLAGS)
42 cxxflags.occ: Makefile
46 $(CC) -fo=$@ @cflags.occ $[*
49 $(CXX) -fo=$@ @cxxflags.occ $[*
52 $(AS) $(ASFLAGS) -o $@ $[*.asm