2 # This will make the test program for ARM.
5 TYPE=none-linux-gnueabi
8 PATH:=/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/:$(PATH)
14 OBJDUMP=$(PROC)-$(TYPE)-objdump
15 CFLAGS= -g -c -mcpu=arm1136j-s
19 # Make a little endian image:
20 # In Eclipse, add the line :
22 # to : Run -> Debug... (menu) -> Commands (tab): Commands (listbox)
23 # To start gdb from a window use : arm-elf-gdb --command=gdbinit
24 test.elf: test.c Makefile ldscript crt0.S
25 $(CC) $(CFLAGS) -o crt0.o crt0.S
26 $(CC) $(CFLAGS) -o test.o test.c
27 $(LD) -g -v -T$(LDSCRIPT) -o test.elf crt0.o test.o
32 $(OBJDUMP) --all-headers test.elf
35 $(OBJDUMP) --disassemble test.elf
38 $(OBJDUMP) --full-contents test.elf
41 -/bin/rm -f *.o *~ test.elf