]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - support/make/pxa27x/pxa27x.rules
Added proper AM group support. Says something that nobody noticed...
[tinyos-2.x.git] / support / make / pxa27x / pxa27x.rules
index 2a9751797cea5323274b6e89ae895990c6ba7cff..b57fcdb2dbe6324a751638d22b97e787b9aff65b 100644 (file)
@@ -35,11 +35,14 @@ ASSEMBLY_OBJS =  $(BUILDDIR)/asms.o
 #LIBRARY_OBJS  =  $(PLATFORM_DIR)/lib/profile.o $(PLATFORM_DIR)/lib/queue.o
 
 OPTFLAGS ?= -O3 -g
-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 -board=$(SENSORBOARD)
 ifdef MSG_SIZE
 PFLAGS += -DTOSH_DATA_LENGTH=$(MSG_SIZE)
 endif
+ifdef DEFAULT_LOCAL_GROUP
+PFLAGS += -DDEFINED_TOS_AM_GROUP=$(DEFAULT_LOCAL_GROUP)
+endif
 
 DEFAULT_PROGRAM ?= xflash