From 84bd297c95d6c41ea8dfd89a83a54ef1018e3530 Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 2 Jul 2006 21:56:28 +0000 Subject: Oops, forgot the Makefile --- estorm/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 estorm/Makefile diff --git a/estorm/Makefile b/estorm/Makefile new file mode 100644 index 0000000..9b3c7ab --- /dev/null +++ b/estorm/Makefile @@ -0,0 +1,17 @@ +#all: +# gcc -Wall -O0 -mcpu=arm7tdmi-s -mapcs -mthumb-interwork -o flash.o flash.c -nostartfiles -nodefaultlibs -nostdlib -Wl,-e,main +# objcopy -Obinary -j.text flash.o flash.bin +# objdump --disassemble-all -bbinary -marm7tdmi flash.bin > flash.asm +# + +TOOL_PREFIX=arm-elf- + +all: + $(TOOL_PREFIX)gcc -W -Wall -O3 -mcpu=arm7tdmi -mapcs -mthumb-interwork -c -o boot.o boot.c + $(TOOL_PREFIX)as --warn -mcpu=arm7tdmi -mapcs-32 -EL -mthumb-interwork -o crt0.o crt0.s + $(TOOL_PREFIX)ld -T estorm.lds --gc-sections crt0.o boot.o -o estorm + $(TOOL_PREFIX)objcopy -O binary estorm estorm.bin + $(TOOL_PREFIX)objdump --disassemble-all -b binary -m arm7tdmi estorm.bin > estorm.asm + +clean: + rm -f estorm.o estorm.bin estorm.asm -- cgit v1.2.3