Home | History | Annotate | Download | only in tests
      1 CC := arm-elf-gcc
      2 LD := arm-elf-ld
      3 AS := arm-elf-as
      4 OBJCOPY := arm-elf-objcopy
      5 OBJDUMP := arm-elf-objdump
      6 
      7 OPT := -g
      8 CFLAGS := $(OPT) -mcpu=arm9
      9 
     10 .SUFFIXES: .dis .bin .elf
     11 
     12 .c.elf:
     13 	$(CC) $(CFLAGS)  -Xlinker --script ../tests.ld -o $@ $< -nostdlib
     14 
     15 .c.s:
     16 	$(CC) $(CFLAGS) -static -S $<
     17 
     18 .S.elf:
     19 	$(CC) $(CFLAGS) -Xlinker --script ../tests.ld -nostdlib -o $@ $<
     20 
     21 .elf.dis:
     22 	$(OBJDUMP) -adx $< > $@
     23 
     24 .elf.bin:
     25 	$(OBJCOPY) -O binary $< $@
     26