pico430prog/test/msp430/Makefile

21 lines
371 B
Makefile
Raw Permalink Normal View History

2021-10-03 15:39:32 +00:00
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