goodwatch/firmware/Makefile

26 lines
396 B
Makefile
Raw Normal View History

2017-09-21 19:31:09 +00:00
#Standard Debian gcc-msp430 and msp430mcu packages.
CC = msp430-gcc -mmcu=cc430f6137
2017-09-21 19:31:09 +00:00
2017-09-23 16:36:20 +00:00
BSL = ../bin/cc430-bsl.py
modules=main.o lcd.o
all: goodwatch.hex
goodwatch: $(modules)
$(CC) -o goodwatch $(modules)
goodwatch.hex: goodwatch
2017-09-23 16:36:20 +00:00
msp430-objcopy -O ihex goodwatch goodwatch.hex
2017-09-21 19:31:09 +00:00
clean:
rm -f *~ *.hex *.elf *.o goodwatch
2017-09-21 19:31:09 +00:00
erase:
2017-09-23 16:36:20 +00:00
$(BSL) -e
flash: goodwatch.hex
$(BSL) -ef goodwatch.hex
2017-09-23 16:36:20 +00:00
2017-09-21 19:31:09 +00:00