From d9191f71473f7148e89df2742bf2200710c7cb2a Mon Sep 17 00:00:00 2001 From: klueska Date: Thu, 24 Jul 2008 21:18:33 +0000 Subject: [PATCH] Update to add all supported platforms for compile --- .../tosthreads/apps/TestBlockStorage/Makefile | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/apps/tosthreads/apps/TestBlockStorage/Makefile b/apps/tosthreads/apps/TestBlockStorage/Makefile index c10c64ff..f3394f9f 100644 --- a/apps/tosthreads/apps/TestBlockStorage/Makefile +++ b/apps/tosthreads/apps/TestBlockStorage/Makefile @@ -1,10 +1,20 @@ COMPONENT=TestBlockStorageAppC +THIS_SUPPORTED_PLATFORMS=tmote telos telosb eyesIFXv1 eyesIFXv2 mica2 mica2dot telosa eyesIFX micaz iris tinynode -ifneq ($(filter telosb,$(MAKECMDGOALS)),) - CFLAGS+=-DUSE_STM25P -endif -ifneq ($(filter micaz iris,$(MAKECMDGOALS)),) - CFLAGS+=-DUSE_AT45DB +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) -- 2.39.2