2017-09-21 19:31:09 +00:00
|
|
|
|
2017-09-23 15:20:55 +00:00
|
|
|
#Standard Debian gcc-msp430 and msp430mcu packages.
|
2017-09-26 15:44:10 +00:00
|
|
|
CC = msp430-gcc -mmcu=cc430f6137 -Wall -I.
|
2017-09-21 19:31:09 +00:00
|
|
|
|
2017-09-23 16:36:20 +00:00
|
|
|
BSL = ../bin/cc430-bsl.py
|
|
|
|
|
2017-09-26 20:05:55 +00:00
|
|
|
modules=main.o lcd.o lcdtext.o rtc.o keypad.o apps.c sidebutton.c
|
2017-09-26 15:44:10 +00:00
|
|
|
apps= apps/clock.o apps/rpn.o
|
2017-09-23 15:20:55 +00:00
|
|
|
|
2017-09-23 16:21:58 +00:00
|
|
|
all: goodwatch.hex
|
2017-09-23 15:20:55 +00:00
|
|
|
|
2017-09-26 15:44:10 +00:00
|
|
|
goodwatch: $(modules) $(apps)
|
|
|
|
$(CC) -o goodwatch $(modules) $(apps)
|
2017-09-23 15:20:55 +00:00
|
|
|
goodwatch.hex: goodwatch
|
2017-09-26 13:15:55 +00:00
|
|
|
msp430-objcopy -O ihex goodwatch goodwatch.hex
|
2017-09-21 19:31:09 +00:00
|
|
|
|
|
|
|
clean:
|
2017-09-23 15:20:55 +00:00
|
|
|
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
|
2017-09-24 15:48:52 +00:00
|
|
|
flash: goodwatch.hex
|
2017-09-24 22:52:30 +00:00
|
|
|
$(BSL) -etf goodwatch.hex
|
2017-09-23 16:36:20 +00:00
|
|
|
|
2017-09-21 19:31:09 +00:00
|
|
|
|