1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
.PHONY: all clean all: loop.bin CROSS_COMPILE ?= AS = $(CROSS_COMPILE)as OBJCOPY = $(CROSS_COMPILE)objcopy loop.bin: loop.elf $(OBJCOPY) -O binary $? $@ loop.elf: loop.asm $(AS) -o $@ $? clean: rm -f loop.{bin,elf}