]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tests/tkn154/Makefile.include
- re-designed the radio driver interfaces, restructured/improved the CC2420 radio...
[tinyos-2.x.git] / apps / tests / tkn154 / Makefile.include
index 659aaf354b2af1e0234b14e3ac87b4e856df6048..13604c3f0f42a50fd14062a670d7cff3a7e9e2c0 100644 (file)
@@ -12,16 +12,24 @@ ifdef IEEE154_EXTENDED_ADDRESS
 PFLAGS += -DIEEE154_EXTENDED_ADDRESS=$(IEEE154_EXTENDED_ADDRESS)
 endif
 
+ifdef TKN154_DEBUG
+PFLAGS += -DTKN154_DEBUG
+CFLAGS += -I$(TOSDIR)/lib/printf
+PFLAGS += -DPRINTF_BUFFER_SIZE=1000
+endif
+
 # parses the PLATFORM variable
 include $(MAKERULES)
 
 # checks whether the target platform is supported by the application;
 # the application Makefile can define PLATFORMS as a whitespace-separated
 # list of supported platforms
-ifneq ($(PLATFORMS),)
-  ifeq ($(strip $(foreach platform,$(PLATFORMS),$(findstring $(platform),$(PLATFORM)))),)
-    $(error The target platform is not supported by this application - supported platforms are: $(PLATFORMS))
+ifneq ($(PLATFORM),)
+  ifneq ($(PLATFORMS),)
+    ifeq ($(strip $(foreach platform,$(PLATFORMS),$(findstring $(platform),$(PLATFORM)))),)
+      $(error The target platform is not supported by this application - supported platforms are: $(PLATFORMS))
+    endif
   endif
+  include $(TKN154_PLATFORM_INCLUDE)
 endif
 
-include $(TKN154_PLATFORM_INCLUDE)