]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - support/make/threads.extra
Fix problem where TinyLD example apps only complied successfully for Telosb
[tinyos-2.x.git] / support / make / threads.extra
index 50e21d3e95be35dde2edc0671a24ddb1d9b07a6d..17adba170ea7342e7e39a0c9c8b0ea47a691f783 100644 (file)
@@ -82,6 +82,12 @@ ifneq ($(filter telos telosa telosb tmote,$(MAKECMDGOALS)),)
   CFLAGS += $(THREADS_MSP430_INCLUDE_DIRS)
   CFLAGS += $(THREADS_CC2420_INCLUDE_DIRS)
   CFLAGS += $(THREADS_TELOS_INCLUDE_DIRS)
+  
+  #Since Telosb has some sensors not on other platforms, this helps us figure out
+  #what components should be included
+  ifneq ($(filter telosb,$(MAKECMDGOALS)),)
+    CFLAGS += -DPLATFORM_TELOSB
+  endif
 endif
 ifneq ($(filter mica2,$(MAKECMDGOALS)),)
   CFLAGS += $(THREADS_ATM128_INCLUDE_DIRS)
@@ -120,4 +126,3 @@ ifneq ($(filter shimmer,$(MAKECMDGOALS)),)
   CFLAGS += $(THREADS_CC2420_INCLUDE_DIRS)
   CFLAGS += $(THREADS_SHIMMER_INCLUDE_DIRS)
 endif
-