Added arm32-hello-world

This commit is contained in:
2023-02-04 10:45:47 -08:00
parent 5e78628e6e
commit 5de432beae
3 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,15 @@
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