summaryrefslogtreecommitdiff
path: root/loop/Makefile
blob: 9933bc5d4641c716e4eab018342a5bfaf74ceb96 (plain)
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}