Chipcon support is coming along.
[goodfet] / firmware / apps / Makefile
index 2c99c0d..7228f2c 100644 (file)
@@ -10,14 +10,23 @@ GCCINC=-T ../ldscripts/161x.x
 
 CC=msp430-gcc -g -mmcu=$(mcu) -DGCC $(GCCINC) -I ../include
 
 
 CC=msp430-gcc -g -mmcu=$(mcu) -DGCC $(GCCINC) -I ../include
 
-apps= monitor/monitor.c spi/spi.c i2c/i2c.c
+apps= monitor/monitor.c spi/spi.c i2c/i2c.c chipcon/chipcon.c
 libs= ../lib/msp430f1612.c ../lib/command.c
 app=goodfet
 
 libs= ../lib/msp430f1612.c ../lib/command.c
 app=goodfet
 
+all: $(app)
+
+goodfet.hex: goodfet
+
+
 install: $(app)
        $(BSL) -e -p $(app) 
        $(BSL) -P $(app) -r
 $(app): $(app).c $(libs) $(apps)
 install: $(app)
        $(BSL) -e -p $(app) 
        $(BSL) -P $(app) -r
 $(app): $(app).c $(libs) $(apps)
+$(app).hex: $(app)
+       msp430-objcopy goodfet -O ihex goodfet.hex
+m4s: $(app).hex
+       msp430-objdump -D -m msp430 $(app).hex | m4s init
 erase:
        $(BSL) -e 
 clean:
 erase:
        $(BSL) -e 
 clean: