-demoobj = main.obj demo.obj screen.obj cfgopt.obj music.obj gfxutil.obj 3dgfx.obj &
-polyfill.obj
-scrobj = tunnel.obj fract.obj grise.obj polytest.obj plasma.obj
-sysobj = gfx.obj vbe.obj dpmi.obj timer.obj keyb.obj mouse.obj logger.obj tinyfps.obj
+demoobj = main.obj demo.obj screen.obj cfgopt.obj music.obj gfxutil.obj &
+3dgfx.obj polyfill.obj polyclip.obj metasurf.obj dynarr.obj
+scrobj = tunnel.obj fract.obj grise.obj polytest.obj plasma.obj bump.obj &
+thunder.obj metaball.obj greets.obj
+sysobj = gfx.obj vbe.obj watdpmi.obj timer.obj keyb.obj mouse.obj sball.obj &
+logger.obj tinyfps.obj
obj = $(baseobj) $(demoobj) $(sysobj) $(scrobj)
bin = demo.exe
!ifdef __UNIX__
incpath = -Isrc -Isrc/dos -Ilibs/imago/src -Ilibs/oldmik/src
libpath = libpath libs/imago libpath libs/oldmik
+RM = rm -f
!else
incpath = -Isrc -Isrc\dos -Ilibs\imago\src -Ilibs\oldmik\src
libpath = libpath libs\imago libpath libs\oldmik
+RM = del
!endif
AS = nasm
cxxflags.occ: Makefile
%write $@ $(CXXFLAGS)
+music.obj: music.c
+ $(CC) -fo=$@ @cflags.occ -zu $[*
+
.c.obj: .autodepend
$(CC) -fo=$@ @cflags.occ $[*
$(AS) $(ASFLAGS) -o $@ $[*.asm
clean: .symbolic
- del *.obj
- del *.occ
- del *.lnk
- del $(bin)
+ $(RM) *.obj
+ $(RM) *.occ
+ $(RM) *.lnk
+ $(RM) $(bin)