Added arm32-hello-world
This commit is contained in:
15
arm32-hello-world/Makefile
Normal file
15
arm32-hello-world/Makefile
Normal 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
|
Reference in New Issue
Block a user