mirror of
https://github.com/travisgoodspeed/goodwatch
synced 2024-11-23 09:19:58 +00:00
26 lines
418 B
Makefile
26 lines
418 B
Makefile
|
|
#Standard Debian gcc-msp430 and msp430mcu packages.
|
|
CC = msp430-gcc -mmcu=cc430f6137 -Wall
|
|
|
|
BSL = ../bin/cc430-bsl.py
|
|
|
|
|
|
modules=main.o lcd.o lcdtext.o rtc.o
|
|
|
|
all: goodwatch.hex
|
|
|
|
goodwatch: $(modules)
|
|
$(CC) -o goodwatch $(modules)
|
|
goodwatch.hex: goodwatch
|
|
msp430-objcopy -O ihex goodwatch goodwatch.hex
|
|
|
|
clean:
|
|
rm -f *~ *.hex *.elf *.o goodwatch
|
|
|
|
erase:
|
|
$(BSL) -e
|
|
flash: goodwatch.hex
|
|
$(BSL) -ef goodwatch.hex
|
|
|
|
|