summaryrefslogtreecommitdiff
path: root/berry_fix/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'berry_fix/Makefile')
-rw-r--r--berry_fix/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/berry_fix/Makefile b/berry_fix/Makefile
index ffe0cf251..d449fdbef 100644
--- a/berry_fix/Makefile
+++ b/berry_fix/Makefile
@@ -1,6 +1,7 @@
-include $(DEVKITARM)/base_tools
-export CPP := $(PREFIX)cpp
-export LD := $(PREFIX)ld
+AS := ../tools/binutils/bin/arm-none-eabi-as
+CPP := $(CC) -E
+LD := ../tools/binutils/bin/arm-none-eabi-ld
+OBJCOPY := ../tools/binutils/bin/arm-none-eabi-objcopy
ifeq ($(OS),Windows_NT)
EXE := .exe
@@ -152,7 +153,7 @@ $(SONG_BUILDDIR)/%.o: $(SONG_SUBDIR)/%.s
$(AS) $(ASFLAGS) -I sound -o $@ $<
$(ELF): ld_script.txt $(OBJS)
- cd $(OBJ_DIR) && $(LD) $(LDFLAGS) -T ../ld_script.txt -o ../$@
+ cd $(OBJ_DIR) && ../$(LD) $(LDFLAGS) -T ../ld_script.txt -o ../$@
$(ROM): $(ELF)
$(OBJCOPY) -O binary $< $@