diff options
Diffstat (limited to 'loop/Makefile')
-rw-r--r-- | loop/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/loop/Makefile b/loop/Makefile new file mode 100644 index 0000000..9933bc5 --- /dev/null +++ b/loop/Makefile @@ -0,0 +1,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} |