This repository has been archived on 2022-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Luma3DS-3GX/haxloader/data/loader/Makefile

26 lines
386 B
Makefile
Raw Normal View History

2016-09-23 18:07:45 +02:00
LD := arm-none-eabi-ld
AS := arm-none-eabi-as
OC := arm-none-eabi-objcopy
XXD := xxd
all: loader.h
loader.o: loader.s
$(AS) -o $@ $<
loader.elf: loader.o
$(LD) -T stub.ld -o $@ $<
loader.bin: loader.elf
$(OC) -O binary $< $@
loader.h: loader.bin
$(XXD) -i $< > $@
@rm -f *.elf *.o
@echo built loader
.PHONY: clean
clean:
@rm -f *.h *.bin *.elf *.o
@echo cleaned loader