TOSTHREAD_MAIN=TestCollection.c
-PFLAGS += -DTOSTHREAD_MAIN_STACK_SIZE=800
-
CFLAGS += -I$(TOSDIR)/lib/tosthreads/sensorboards/universal
CFLAGS += -I$(TOSDIR)/lib/tosthreads/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
+