1CC := arm-elf-gcc 2LD := arm-elf-ld 3AS := arm-elf-as 4OBJCOPY := arm-elf-objcopy 5OBJDUMP := arm-elf-objdump 6 7OPT := -g 8CFLAGS := $(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