]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - support/make/null/null.rules
Added proper AM group support. Says something that nobody noticed...
[tinyos-2.x.git] / support / make / null / null.rules
index 1fe3f3b7c8193c75ac4fb4d54f4e5a7a7008b407..d4313119002a2fd8899766b3c1b90e103c5a11ce 100644 (file)
@@ -22,11 +22,14 @@ MAIN_IHEX = $(BUILDDIR)/main.ihex
 INSTALL_SREC = $(MAIN_SREC).out$(if $(NODEID),-$(NODEID),)
 VOLUMEFILE = volumes-at45db.xml
 
-PFLAGS += -Wall -Wshadow -DDEF_TOS_AM_GROUP=$(DEFAULT_LOCAL_GROUP) $(NESC_FLAGS)
+PFLAGS += -Wall -Wshadow $(NESC_FLAGS)
 PFLAGS += -target=$(PLATFORM) -fnesc-cfile=$(BUILDDIR)/app.c
 ifdef MSG_SIZE
 PFLAGS += -DTOSH_DATA_LENGTH=$(MSG_SIZE)
 endif
+ifdef DEFAULT_LOCAL_GROUP
+PFLAGS += -DDEFINED_TOS_AM_GROUP=$(DEFAULT_LOCAL_GROUP)
+endif
 
 BUILDLESS_DEPS += bytes