]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tosthreads/apps/TestBlockStorage/Makefile
Update to add all supported platforms for compile
[tinyos-2.x.git] / apps / tosthreads / apps / TestBlockStorage / Makefile
index f4a0d1d3aa4299e0e27f554d3e4768f046609997..f3394f9fa99ceb3cb75655d3d25152390db4b8de 100644 (file)
@@ -1,3 +1,20 @@
 COMPONENT=TestBlockStorageAppC
+THIS_SUPPORTED_PLATFORMS=tmote telos telosb eyesIFXv1 eyesIFXv2 mica2 mica2dot telosa eyesIFX micaz iris tinynode
+
+ifneq ($(filter $(THIS_SUPPORTED_PLATFORMS) clean,$(MAKECMDGOALS)),)
+       ifneq ($(filter tmote telos telosb eyesIFXv1,$(MAKECMDGOALS)),)
+               CFLAGS+=-DUSE_STM25P
+       endif
+       ifneq ($(filter mica2 telosa mica2dot eyesIFX eyesIFXv2 micaz iris tinynode,$(MAKECMDGOALS)),)
+               CFLAGS+=-DUSE_AT45DB
+       endif
+
+       include $(MAKERULES)
+else
+%:
+       @echo "    Sorry, this application is only written to work with the following platforms:"
+       @echo "        $(THIS_SUPPORTED_PLATFORMS)"
+threads:
+       @:
+endif
 
-include $(MAKERULES)