summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDiegoisawesome <diego@domoreaweso.me>2018-01-09 19:37:10 -0600
committerDiegoisawesome <diego@domoreaweso.me>2018-01-09 19:37:10 -0600
commit4e4b18e04fecf894ee5d6b87ee4009a83771be5b (patch)
tree079d3e67d0d5b38d494769d7210cf668a3b3aea2 /Makefile
parent90c5b93f231ac63af5399d0d55d167bbe5e64708 (diff)
Remove sample bins and update makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 382b69888..67e49e9a4 100644
--- a/Makefile
+++ b/Makefile
@@ -75,6 +75,8 @@ compare: $(ROM)
@$(SHA1) rom.sha1
clean: tidy
+ rm -f sound/direct_sound_samples/*.bin
+ rm -f $(SONG_OBJS)
find . \( -iname '*.1bpp' -o -iname '*.4bpp' -o -iname '*.8bpp' -o -iname '*.gbapal' -o -iname '*.lz' -o -iname '*.latfont' -o -iname '*.hwjpnfont' -o -iname '*.fwjpnfont' \) -exec rm {} +
tidy:
@@ -95,6 +97,10 @@ include graphics_file_rules.mk
%.gbapal: %.png ; $(GFX) $< $@
%.lz: % ; $(GFX) $< $@
%.rl: % ; $(GFX) $< $@
+sound/direct_sound_samples/cry_%.bin: sound/direct_sound_samples/cry_%.aif ; $(AIF) $< $@ --compress
+%.bin: %.aif ; $(AIF) $< $@
+sound/songs/%.s: sound/songs/%.mid
+ cd $(@D) && ../../$(MID) $(<F)
$(C_BUILDDIR)/libc.o: CC1 := tools/agbcc/bin/old_agbcc
$(C_BUILDDIR)/libc.o: CFLAGS := -O2