X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=support%2Fmake%2Favr%2Favr.rules;h=3afd445a6c6b018e8ce97fb3fcb3301115de7fd7;hb=c9a98d43014466bab076cf57bd461aef7950cd46;hp=b0671d5214470710255a0ab584f0bfe410192114;hpb=82e72e76e91caee6aa2f36f39cb5cc99dfaed6d4;p=tinyos-2.x.git diff --git a/support/make/avr/avr.rules b/support/make/avr/avr.rules index b0671d52..3afd445a 100644 --- a/support/make/avr/avr.rules +++ b/support/make/avr/avr.rules @@ -23,6 +23,12 @@ define AVR_HELP endef HELP += $(AVR_HELP) +ifdef MAKE_DEPUTY_FLAG + NCC_SAFE_TINYOS_FLAG = -safe +else + NCC_SAFE_TINYOS_FLAG = +endif + OBJCOPY = avr-objcopy OBJDUMP = avr-objdump SET_ID = tos-set-symbols @@ -124,7 +130,10 @@ 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) +ifdef MAKE_DEPUTY_FLAG + @echo " ***** compiling Safe TinyOS *****" +endif + $(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