Added special make rule for music.c, because since it contains a mikmod
authorJohn Tsiombikas <nuclear@mutantstargoat.com>
Sun, 25 Sep 2016 23:07:06 +0000 (02:07 +0300)
committerJohn Tsiombikas <nuclear@mutantstargoat.com>
Sun, 25 Sep 2016 23:07:06 +0000 (02:07 +0300)
callback, which might be called from an interrupt, it must be compiled
with -zu

Makefile

index 361a2f2..f17893e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -45,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 $[*