Trying to get 2618 going.
[goodfet] / firmware / tests / echo / Makefile
index a8b398b..bcb9a93 100644 (file)
@@ -3,19 +3,21 @@ PORT=/dev/ttyUSB0
 BSL=tos-bsl --invert-reset --invert-test -c $(PORT)
 
 #mcu=msp430x1611
-mcu=msp430x1612
+mcu=msp430x2618
 
-GCCINC=-T ../../ldscripts/161x.x
-CC=msp430-gcc -g -mmcu=$(mcu) -DGCC $(GCCINC) -I ../../include
+#ldscript is wonky
+#GCCINC=-T ../../ldscripts/161x.x
 
+CC=msp430-gcc -g -mmcu=$(mcu) -DGCC $(GCCINC) -I ../../include
 
+libs=../../lib/msp430x2618.c
 app=echo
 
 install: $(app)
        $(BSL) -e -p $(app) 
-       #$(BSL) -P $(app) -g 0x2500
        $(BSL) -P $(app) -r
+$(app): $(app).c $(libs)
 erase:
        $(BSL) -e 
 clean:
-       rm $(app)
+       rm -f $(app)