pico430prog/test/Makefile

21 lines
371 B
Makefile

AS := msp430-gcc
CC := msp430-gcc
LD := msp430-gcc
OBJCOPY := msp430-objcopy
all: test.bin
test.S.o: test.S
$(AS) -c -o "$@" "$<"
test.elf test.elf.map: test.S.o link.ld
$(LD) -o "$@" "$<" -T link.ld -Wl,-Map="$@.map" -nostdlib -nostartfiles
test.bin: test.elf
$(OBJCOPY) -O binary "$<" "$@"
clean:
@$(RM) -v test.bin test.bin.h test.elf test.elf.map test.S.o