RELOC_ADDR = 0x600

all: mbr

clean:
	rm -f mbr boot.elf *~

boot.elf: boot.S boot.h
	$(CC) -Wall -nostdinc -nostdlib -Wl,-N,-Ttext,$(RELOC_ADDR) -DRELOC_ADDR=$(RELOC_ADDR) $< -o $@

mbr: boot.elf
	objcopy -O binary -R .note -R .comment $^ $@
