bsp construction doesn't crash any more
[dosdemo] / Makefile
index e13b685..9845ce2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,9 @@
-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 mesh.obj
+scrobj = tunnel.obj fract.obj grise.obj polytest.obj plasma.obj bump.obj &
+thunder.obj metaball.obj greets.obj infcubes.obj
+sysobj = gfx.obj vbe.obj watdpmi.obj timer.obj keyb.obj mouse.obj sball.obj &
+logger.obj tinyfps.obj util.obj
 obj = $(baseobj) $(demoobj) $(sysobj) $(scrobj)
 bin = demo.exe
 
@@ -14,9 +16,11 @@ dbg = -d1
 !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
@@ -43,6 +47,9 @@ cflags.occ: Makefile
 cxxflags.occ: Makefile
        %write $@ $(CXXFLAGS)
 
+music.obj: music.c
+       $(CC) -fo=$@ @cflags.occ -zu $[*
+
 .c.obj: .autodepend
        $(CC) -fo=$@ @cflags.occ $[*
 
@@ -53,7 +60,7 @@ cxxflags.occ: Makefile
        $(AS) $(ASFLAGS) -o $@ $[*.asm
 
 clean: .symbolic
-       del *.obj
-       del *.occ
-       del *.lnk
-       del $(bin)
+       $(RM) *.obj
+       $(RM) *.occ
+       $(RM) *.lnk
+       $(RM) $(bin)