bcb9a93f4570da545a58d2ac31925445dccf2209
[goodfet] / firmware / tests / echo / Makefile
1
2 PORT=/dev/ttyUSB0
3 BSL=tos-bsl --invert-reset --invert-test -c $(PORT)
4
5 #mcu=msp430x1611
6 mcu=msp430x2618
7
8 #ldscript is wonky
9 #GCCINC=-T ../../ldscripts/161x.x
10
11 CC=msp430-gcc -g -mmcu=$(mcu) -DGCC $(GCCINC) -I ../../include
12
13 libs=../../lib/msp430x2618.c
14 app=echo
15
16 install: $(app)
17         $(BSL) -e -p $(app) 
18         $(BSL) -P $(app) -r
19 $(app): $(app).c $(libs)
20 erase:
21         $(BSL) -e 
22 clean:
23         rm -f $(app)