From f9c944e5a8d298bad4b6f50b238f4bffb2d90fbb Mon Sep 17 00:00:00 2001 From: Dave Murphy Date: Thu, 15 Jan 2015 11:58:54 +0000 Subject: [PATCH] use base_tools to get path and compiler definitions --- bootstub/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bootstub/Makefile b/bootstub/Makefile index d4fb5cd..aea4f55 100644 --- a/bootstub/Makefile +++ b/bootstub/Makefile @@ -1,12 +1,12 @@ -export PATH := $(DEVKITARM)/bin:$(PATH) +include $(DEVKITARM)/base_tools TARGET := bootstub - + ../data/$(TARGET).bin: $(TARGET).elf - arm-none-eabi-objcopy -O binary $< $@ + $(OBJCOPY) -O binary $< $@ -$(TARGET).elf: $(TARGET).s Makefile - arm-none-eabi-gcc -Wl,-Ttext=0 -x assembler-with-cpp -nostartfiles -nostdlib $(TARGET).s -o $@ +$(TARGET).elf: $(TARGET).s Makefile + $(CC) -Wl,-Ttext=0 -x assembler-with-cpp -nostartfiles -nostdlib $(TARGET).s -o $@ clean: