From 599839a7f9c8414bd1f1024d4e6dcd7ee054f199 Mon Sep 17 00:00:00 2001 From: marcan Date: Wed, 7 Jan 2009 17:56:57 +0100 Subject: [PATCH] Support vanilla armeb toolchain --- Makefile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 851363a..8e93076 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,9 @@ -CC = arm-eabi-gcc -AS = arm-eabi-as -LD = arm-eabi-gcc -OBJCOPY = arm-eabi-objcopy +include ../toolchain.rules + CFLAGS = -mbig-endian -fomit-frame-pointer -Os -Wall -I. ASFLAGS = -mbig-endian -LDFLAGS = -nostartfiles -mbig-endian -Wl,-T,miniios.ld,-Map,miniios.map -n +LDFLAGS = -nostartfiles -nodefaultlibs -mbig-endian -Wl,-T,miniios.ld,-Map,miniios.map -n +LIBS = -lgcc ELFLOADER = ../elfloader/elfloader.bin MAKEBIN = python ../makebin.py @@ -20,7 +19,7 @@ $(TARGET) : $(ELF) $(ELFLOADER) $(ELF) : miniios.ld $(OBJECTS) @echo "LD $@" - @$(LD) $(LDFLAGS) $(OBJECTS) -o $@ + @$(LD) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@ %.o : %.S @echo "AS $@"