diff options
Diffstat (limited to 'common.mk')
-rw-r--r-- | common.mk | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/common.mk b/common.mk new file mode 100644 index 0000000..19a7dcd --- /dev/null +++ b/common.mk @@ -0,0 +1,14 @@ +TOOLPRE:=arm-none-eabi- +CC:=$(TOOLPRE)gcc -ffreestanding -march=armv5te -mabi=aapcs-linux -mthumb +LD:=$(TOOLPRE)ld +#CC:=clang -target arm-none-eabi -ffreestanding -march=armv5te -mabi=aapcs-linux -mthumb +#LD:=ld.lld -m armelf +CFLAGS:=-O2 -Wall -Wextra +.PHONY: all clean +LDFLAGS:=-Ttext 0xa0200000 -e start + +$(TARGET): $(OBJS) + $(LD) $(LDFLAGS) -o $@ $^ + +clean: + rm -f *.o $(TARGET) |