summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorYamaArashi <YamaArashi@users.noreply.github.com>2016-10-28 12:44:32 -0700
committerGitHub <noreply@github.com>2016-10-28 12:44:32 -0700
commitb350c7e9fa867af2871ac2c6b92f95e8bb77617c (patch)
treedfa26bc0b921e09ed0adcaeb2c7988511bf5bbf1 /Makefile
parent4c74840c08660db73df40febe94dde07b2dfe4f8 (diff)
parent0c7d1385e8747383295d7df37ab10c440d20b603 (diff)
Merge pull request #75 from yenatch/master
Decompile berry.c.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 1340f0f15..eb88fdd51 100644
--- a/Makefile
+++ b/Makefile
@@ -18,13 +18,10 @@ LIBGCC := tools/agbcc/lib/libgcc.a
SHA1 := sha1sum -c
GFX := tools/gbagfx/gbagfx
-
AIF := tools/aif2pcm/aif2pcm
-
+MID := tools/mid2agb/mid2agb
SCANINC := tools/scaninc/scaninc
-
PREPROC := tools/preproc/preproc
-
RAMSCRGEN := tools/ramscrgen/ramscrgen
REVISION := 0
@@ -90,7 +87,6 @@ asm/item.o \
asm/matuda_debug_menu.o \
asm/contest.o \
asm/shop.o \
-asm/berry.o \
asm/script_menu.o \
asm/naming_screen.o \
asm/money.o \
@@ -248,6 +244,7 @@ include misc.mk
%.png: ;
%.pal: ;
%.aif: ;
+
%.1bpp: %.png ; $(GFX) $< $@
%.4bpp: %.png ; $(GFX) $< $@
%.8bpp: %.png ; $(GFX) $< $@
@@ -256,6 +253,8 @@ include misc.mk
%.rl: % ; $(GFX) $< $@
%.pcm: %.aif ; $(AIF) $< $@
%.bin: %.aif ; $(AIF) $< $@
+sound/songs/%.s: sound/songs/%.mid
+ cd $(@D) && ../../$(MID) $(<F)
src/libc.o: CC1 := tools/agbcc/bin/old_agbcc
src/libc.o: CFLAGS := -O2
@@ -278,7 +277,11 @@ $(C_OBJS): %.o : %.c
@printf ".text\n\t.align\t2, 0\n" >> $*.s
$(AS) $(ASFLAGS) -o $@ $*.s
+ifeq ($(NODEP),)
%.o: dep = $(shell $(SCANINC) $*.s)
+else
+%.o: dep :=
+endif
$(ASM_OBJS): %.o: %.s $$(dep)
$(AS) $(ASFLAGS) --defsym $(VERSION)=1 --defsym REVISION=$(REVISION) -o $@ $<