Merge branch 'master' of goat:git/dosdemo
[dosdemo] / Makefile
index f0bca5b..d907287 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -14,9 +14,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 +45,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 +58,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)