]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Do a platform check.
authorscipio <scipio>
Mon, 4 Aug 2008 22:33:32 +0000 (22:33 +0000)
committerscipio <scipio>
Mon, 4 Aug 2008 22:33:32 +0000 (22:33 +0000)
apps/tosthreads/capps/TestCollection/Makefile

index 47dfa4bbf58acbb9863734877d9d3d6515d5a52c..8e70067ff21482e2fb1d0b11524159482830c7d0 100644 (file)
@@ -1,7 +1,5 @@
 TOSTHREAD_MAIN=TestCollection.c
 
-PFLAGS += -DTOSTHREAD_MAIN_STACK_SIZE=800
-
 CFLAGS += -I$(TOSDIR)/lib/tosthreads/sensorboards/universal
 
 CFLAGS += -I$(TOSDIR)/lib/tosthreads/lib/net/
@@ -10,4 +8,14 @@ CFLAGS += -I$(TOSDIR)/lib/net/
 CFLAGS += -I$(TOSDIR)/lib/tosthreads/lib/net/ctp
 CFLAGS += -I$(TOSDIR)/lib/net/ctp  -I$(TOSDIR)/lib/net/4bitle
 
-include $(MAKERULES)
+ifneq ($(filter telosb tmote tinynode iris clean,$(MAKECMDGOALS)),) 
+  include $(MAKERULES)
+else
+%:
+       @echo "    Sorry, this application only works on platforms with >8kB of RAM (telos, iris)"
+cthreads:
+       @:
+dynthreads:
+       @:
+endif
+