From c52657d12e7742201ccf211fa50d491d4429aa6c Mon Sep 17 00:00:00 2001 From: yenatch Date: Tue, 28 Jun 2016 23:34:28 -0400 Subject: Fix a makefile bug where a missing dependency would cancel out a rule. --- Makefile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index fcfe3229f..fc8a8e9f9 100644 --- a/Makefile +++ b/Makefile @@ -106,18 +106,18 @@ src/%_sapphire.o: src/%.c @printf ".text\n\t.align\t2, 0\n" >> src/$*_sapphire.s $(AS) $(ASFLAGS) -o $@ src/$*_sapphire.s -asm/%_ruby.o: dep = $(shell $(SCANINC) asm/$*.s) -asm/%_sapphire.o: dep = $(shell $(SCANINC) asm/$*.s) -asm/%_ruby.o: asm/%.s $$(dep) +asm/%_ruby.o: $*_dep = $(shell $(SCANINC) asm/$*.s) +asm/%_sapphire.o: $*_dep = $(shell $(SCANINC) asm/$*.s) +asm/%_ruby.o: asm/%.s $$(%_dep) $(AS) $(ASFLAGS) --defsym RUBY=1 -o $@ $< -asm/%_sapphire.o: asm/%.s $$(dep) +asm/%_sapphire.o: asm/%.s $$(%_dep) $(AS) $(ASFLAGS) --defsym SAPPHIRE=1 -o $@ $< -data/%_ruby.o: dep = $(shell $(SCANINC) data/$*.s) -data/%_sapphire.o: dep = $(shell $(SCANINC) data/$*.s) -data/%_ruby.o: data/%.s $$(dep) +data/%_ruby.o: $*_dep = $(shell $(SCANINC) data/$*.s) +data/%_sapphire.o: $*_dep = $(shell $(SCANINC) data/$*.s) +data/%_ruby.o: data/%.s $$(%_dep) $(PREPROC) $< charmap.txt | $(AS) $(ASFLAGS) --defsym RUBY=1 -o $@ -data/%_sapphire.o: data/%.s $$(dep) +data/%_sapphire.o: data/%.s $$(%_dep) $(PREPROC) $< charmap.txt | $(AS) $(ASFLAGS) --defsym SAPPHIRE=1 -o $@ ld_script_ruby.txt: ld_script.txt -- cgit v1.2.3 From 4dd89ed4f76a626b8762c37736247d8cf5e214b8 Mon Sep 17 00:00:00 2001 From: yenatch Date: Tue, 28 Jun 2016 23:38:22 -0400 Subject: Create mapfiles. --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index fc8a8e9f9..941a0ed37 100644 --- a/Makefile +++ b/Makefile @@ -8,8 +8,8 @@ CPP := $(DEVKITARM)/bin/arm-none-eabi-cpp CPPFLAGS := -I tools/agbcc/include -iquote include -nostdinc -undef LD := $(DEVKITARM)/bin/arm-none-eabi-ld -pokeruby_LDFLAGS := -T ld_script_ruby.txt -T iwram_syms.txt -T ewram_syms.txt -pokesapphire_LDFLAGS := -T ld_script_sapphire.txt -T iwram_syms.txt -T ewram_syms.txt +pokeruby_LDFLAGS := -T ld_script_ruby.txt -T iwram_syms.txt -T ewram_syms.txt -Map pokeruby.map +pokesapphire_LDFLAGS := -T ld_script_sapphire.txt -T iwram_syms.txt -T ewram_syms.txt -Map pokesapphire.map OBJCOPY := $(DEVKITARM)/bin/arm-none-eabi-objcopy @@ -63,11 +63,11 @@ compare: both @$(SHA1) rom.sha1 clean: - rm -f $(ROM) $(ELF) $(OBJS) $(pokeruby_OBJS) $(pokesapphire_OBJS) $(C_SRCS:%.c=%.i) + rm -f $(ROM) $(ELF) $(OBJS) $(pokeruby_OBJS) $(pokesapphire_OBJS) $(C_SRCS:%.c=%.i) pokeruby.map pokesapphire.map find . \( -iname '*.1bpp' -o -iname '*.4bpp' -o -iname '*.8bpp' -o -iname '*.gbapal' -o -iname '*.lz' \) -exec rm {} + tidy: - rm -f $(ROM) $(ELF) $(OBJS) $(pokeruby_OBJS) $(pokesapphire_OBJS) $(C_SRCS:%.c=%.i) + rm -f $(ROM) $(ELF) $(OBJS) $(pokeruby_OBJS) $(pokesapphire_OBJS) $(C_SRCS:%.c=%.i) pokeruby.map pokesapphire.map include castform.mk include tilesets.mk -- cgit v1.2.3 From 8c55493c5a523cab5ce72988ae51b677ed52d6df Mon Sep 17 00:00:00 2001 From: YamaArashi Date: Tue, 28 Jun 2016 22:33:31 -0700 Subject: revert makefile change --- Makefile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 941a0ed37..0c6767587 100644 --- a/Makefile +++ b/Makefile @@ -106,18 +106,20 @@ src/%_sapphire.o: src/%.c @printf ".text\n\t.align\t2, 0\n" >> src/$*_sapphire.s $(AS) $(ASFLAGS) -o $@ src/$*_sapphire.s -asm/%_ruby.o: $*_dep = $(shell $(SCANINC) asm/$*.s) -asm/%_sapphire.o: $*_dep = $(shell $(SCANINC) asm/$*.s) -asm/%_ruby.o: asm/%.s $$(%_dep) +asm/%_ruby.o: dep = $(shell $(SCANINC) asm/$*.s) +asm/%_sapphire.o: dep = $(shell $(SCANINC) asm/$*.s) + +asm/%_ruby.o: asm/%.s $$(dep) $(AS) $(ASFLAGS) --defsym RUBY=1 -o $@ $< -asm/%_sapphire.o: asm/%.s $$(%_dep) +asm/%_sapphire.o: asm/%.s $$(dep) $(AS) $(ASFLAGS) --defsym SAPPHIRE=1 -o $@ $< -data/%_ruby.o: $*_dep = $(shell $(SCANINC) data/$*.s) -data/%_sapphire.o: $*_dep = $(shell $(SCANINC) data/$*.s) -data/%_ruby.o: data/%.s $$(%_dep) +data/%_ruby.o: dep = $(shell $(SCANINC) data/$*.s) +data/%_sapphire.o: dep = $(shell $(SCANINC) data/$*.s) + +data/%_ruby.o: data/%.s $$(dep) $(PREPROC) $< charmap.txt | $(AS) $(ASFLAGS) --defsym RUBY=1 -o $@ -data/%_sapphire.o: data/%.s $$(%_dep) +data/%_sapphire.o: data/%.s $$(dep) $(PREPROC) $< charmap.txt | $(AS) $(ASFLAGS) --defsym SAPPHIRE=1 -o $@ ld_script_ruby.txt: ld_script.txt -- cgit v1.2.3