Added rule to autocompile mspsim if needed and show warning if submodule MSPSim has not been initialized

This commit is contained in:
Niclas Finne 2014-03-18 11:21:19 +01:00
parent c2db3a1a14
commit 279b7fd040

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