Skip to content

Commit

Permalink
use base_tools to get path and compiler definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterMute committed Jan 15, 2015
1 parent ac3ee9e commit f9c944e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bootstub/Makefile
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit f9c944e

Please sign in to comment.