]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
pass -safe flag on to ncc
authorregehr <regehr>
Sat, 16 Feb 2008 19:49:05 +0000 (19:49 +0000)
committerregehr <regehr>
Sat, 16 Feb 2008 19:49:05 +0000 (19:49 +0000)
support/make/msp/msp.rules

index 73027a0d0aa9cd0de4f1f9fc8fe539295c2dc8f2..8812464756722021b0d36c362f4560ff2dddf29b 100644 (file)
@@ -22,6 +22,12 @@ define MSP_HELP
 endef
 HELP += $(MSP_HELP)
 
+ifdef MAKE_DEPUTY_FLAG
+        NCC_SAFE_TINYOS_FLAG = -safe
+else
+        NCC_SAFE_TINYOS_FLAG =
+endif
+
 #MSP_NESC_TARGET ?= msp430
 #MSP_GCC ?= msp430-gcc
 #MSP_MCU ?= msp430x149
@@ -89,7 +95,7 @@ exe: exe0 bytes FORCE
 
 exe0: builddir $(BUILD_EXTRA_DEPS) FORCE
        @echo "    compiling $(COMPONENT) to a $(PLATFORM) binary"
-       $(NCC) -o $(MAIN_EXE) $(OPTFLAGS) $(PFLAGS) $(CFLAGS) $(WIRING_CHECK_FLAGS) $(COMPONENT).nc $(LIBS) $(LDFLAGS)
+       $(NCC) -o $(MAIN_EXE) $(NCC_SAFE_TINYOS_FLAG) $(OPTFLAGS) $(PFLAGS) $(CFLAGS) $(WIRING_CHECK_FLAGS) $(COMPONENT).nc $(LIBS) $(LDFLAGS)
 ifdef WIRING_CHECK_FILE
        @nescc-wiring $(WIRING_CHECK_FILE)
 endif