all: boot7.bin boot9.bin

boot7.bin: boot7.s
	arm-elf-as -o boot7.o boot7.s
	arm-elf-ld -Ttext 0x0380f800 -o boot7.elf boot7.o
	arm-elf-objcopy -O binary -S boot7.elf boot7.bin

boot9.bin: boot9.s
	arm-elf-as -o boot9.o boot9.s
	arm-elf-ld -Ttext 0x023a0000 -o boot9.elf boot9.o
	arm-elf-objcopy -O binary -S boot9.elf boot9.bin

clean:
	rm -f *.o *.elf *.bin
