asm-practice/arm32-hello-world/Makefile

16 lines
213 B
Makefile

AS=arm-linux-gnueabihf-as
ASFLAGS=-g
LD=arm-linux-gnueabihf-gcc
LDFLAGS=-nostdlib
hello-world: main.o
$(LD) $(LDFLAGS) -o $@ $<
%.o: %.s
$(AS) $(ASFLAGS) -o $@ $<
.PHONY: clean
clean:
rm -f *.o hello-world