mirror of
https://github.com/travisgoodspeed/goodwatch
synced 2024-11-23 09:19:58 +00:00
29 lines
620 B
Makefile
29 lines
620 B
Makefile
|
|
#Standard Debian gcc-msp430 and msp430mcu packages.
|
|
CC = msp430-gcc -mmcu=cc430f6137 -Wall -I.
|
|
|
|
BSL = ../bin/cc430-bsl.py
|
|
|
|
modules=main.o lcd.o lcdtext.o rtc.o keypad.o apps.o sidebutton.o
|
|
apps= apps/clock.o apps/rpn.o apps/hex.o apps/stopwatch.o
|
|
|
|
all: goodwatch.hex
|
|
|
|
*.c: gittag.h
|
|
|
|
gittag.h:
|
|
echo "#define GITTAG" 0x`git describe --always` >gittag.h
|
|
goodwatch: $(modules) $(apps) *.h
|
|
$(CC) -o goodwatch $(modules) $(apps)
|
|
goodwatch.hex: goodwatch
|
|
msp430-objcopy -O ihex goodwatch goodwatch.hex
|
|
|
|
clean:
|
|
rm -f *~ *.hex *.elf *.o goodwatch gittag.h
|
|
erase:
|
|
$(BSL) -e
|
|
flash: goodwatch.hex
|
|
$(BSL) -etf goodwatch.hex
|
|
|
|
|