blob: e8170e963a85c8aaa3e8bbf5ee4c763a490159f9 [file] [log] [blame]
CC := arm-elf-gcc
LD := arm-elf-ld
AS := arm-elf-as
OBJCOPY := arm-elf-objcopy
OBJDUMP := arm-elf-objdump
OPT := -g
CFLAGS := $(OPT) -mcpu=arm9
.SUFFIXES: .dis .bin .elf
.c.elf:
$(CC) $(CFLAGS) -Xlinker --script ../tests.ld -o $@ $< -nostdlib
.c.s:
$(CC) $(CFLAGS) -static -S $<
.S.elf:
$(CC) $(CFLAGS) -Xlinker --script ../tests.ld -nostdlib -o $@ $<
.elf.dis:
$(OBJDUMP) -adx $< > $@
.elf.bin:
$(OBJCOPY) -O binary $< $@