Merge pull request #610 from nfi/mspsim-auto-compile

Autocompile MSPSim and warn if submodule is not initialized.
This commit is contained in:
Fredrik Österlind 2014-04-02 16:06:25 +02:00
commit d387f27a65

View File

@ -188,7 +188,15 @@ else
$(OBJCOPY) $^ -O ihex $@
endif
%.mspsim: %.${TARGET}
$(CONTIKI)/tools/mspsim/build.xml:
@echo '----------------'
@echo 'Could not find the MSPSim build file. Did you run "git submodule update --init"?'
@echo '----------------'
$(CONTIKI)/tools/mspsim/mspsim.jar: $(CONTIKI)/tools/mspsim/build.xml
(cd $(CONTIKI)/tools/mspsim && ant jar)
%.mspsim: %.${TARGET} ${CONTIKI}/tools/mspsim/mspsim.jar
java -jar ${CONTIKI}/tools/mspsim/mspsim.jar -platform=${TARGET} $<
mspsim-maptable: contiki-${TARGET}.map