Firmware coming together.
[goodfet] / firmware / apps / Makefile
diff --git a/firmware/apps/Makefile b/firmware/apps/Makefile
new file mode 100644 (file)
index 0000000..83f3125
--- /dev/null
@@ -0,0 +1,24 @@
+
+PORT=/dev/ttyUSB0
+BSL=tos-bsl --invert-reset --invert-test -c $(PORT)
+
+#mcu=msp430x1611
+mcu=msp430x1612
+
+#ldscript is wonky
+GCCINC=-T ../ldscripts/161x.x
+
+CC=msp430-gcc -g -mmcu=$(mcu) -DGCC $(GCCINC) -I ../include
+
+apps= monitor/monitor.c
+libs= ../lib/msp430f1612.c ../lib/command.c
+app=goodfet
+
+install: $(app)
+       $(BSL) -e -p $(app) 
+       $(BSL) -P $(app) -r
+$(app): $(app).c $(libs) $(apps)
+erase:
+       $(BSL) -e 
+clean:
+       rm -f $(app)