X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=support%2Fmake%2Fmsp%2Fmsp.rules;h=0bab085a81954165c4f39898ddd819c51846fef6;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=d283faf596d6f5743bbf3cf357d5090ef7c4ff0f;hpb=409a3bb13dabe16fbe0600a8127358e7e6b1b7a3;p=tinyos-2.x.git diff --git a/support/make/msp/msp.rules b/support/make/msp/msp.rules index d283faf5..0bab085a 100644 --- a/support/make/msp/msp.rules +++ b/support/make/msp/msp.rules @@ -7,7 +7,6 @@ define MSP_HELP debug : compile with minimal optimization and debug symbols debugopt : compile with debug symbols - xnp : compile for network programming Programmer options: @@ -23,9 +22,9 @@ endef HELP += $(MSP_HELP) ifdef MAKE_DEPUTY_FLAG - NCC_SAFE_TINYOS_FLAG = -safe + NCC_SAFE_TINYOS_FLAGS = -DSAFE_TINYOS -I$(TOSDIR)/lib/safe -fnesc-deputy -fnesc-deputy-args='-I$(TOSDIR)/lib/safe/include --FLIDs=build/$(PLATFORM)/flids.txt --envmachine -DSAFE_TINYOS --nolib ' else - NCC_SAFE_TINYOS_FLAG = + NCC_SAFE_TINYOS_FLAGS = endif #MSP_NESC_TARGET ?= msp430 @@ -39,7 +38,12 @@ SET_ID = tos-set-symbols NCC = ncc LIBS = -lm -AMADDR = ActiveMessageAddressC\$$addr +# Use __ as the separator - requires nesC 1.2.9 or later +ifneq ($(filter sim,$(GOALS)),sim) + PFLAGS += -fnesc-separator=__ +endif + +AMADDR = ActiveMessageAddressC__addr BUILDDIR ?= build/$(PLATFORM) MAIN_EXE = $(BUILDDIR)/main.exe MAIN_IHEX = $(BUILDDIR)/main.ihex @@ -102,7 +106,7 @@ exe: exe0 bytes FORCE exe0: builddir $(BUILD_EXTRA_DEPS) FORCE @echo " compiling $(COMPONENT) to a $(PLATFORM) binary" - $(NCC) -o $(MAIN_EXE) $(NCC_SAFE_TINYOS_FLAG) $(OPTFLAGS) $(PFLAGS) $(CFLAGS) $(WIRING_CHECK_FLAGS) $(COMPONENT).nc $(LIBS) $(LDFLAGS) + $(NCC) -o $(MAIN_EXE) $(NCC_SAFE_TINYOS_FLAGS) $(OPTFLAGS) $(PFLAGS) $(CFLAGS) $(WIRING_CHECK_FLAGS) $(COMPONENT).nc $(LIBS) $(LDFLAGS) ifdef WIRING_CHECK_FILE @nescc-wiring $(WIRING_CHECK_FILE) endif