tinyos-2.x.rar

源代码在线查看: avr-studio-debug.extra

软件大小: 21877 K
上传用户: Whibsvvy
关键词: tinyos
下载地址: 免注册下载 普通下载 VIP

相关代码

				#-*-Makefile-*- vim:syntax=make
				#$Id: avr-studio-debug.extra,v 1.2 2009/01/21 16:26:55 sallai Exp $
				
				BUILD_DEPS = srec tosimage bytes $(POST_BUILD_EXTRA_DEPS) buildelf
				APPC_WINPATH = $(BUILDDIR)/app-winpath.c
				MAIN_ELF = $(BUILDDIR)/main.elf
				
				# no inlining or optimizations
				OPTFLAGS += -O0 -fnesc-no-inline
				
				# produce dwarf-2 debug information for AVR Studio
				OPTFLAGS += -gdwarf-2
				
				# we use ncc to invoke gcc thus need to allow dollars in identifiers
				#OPTFLAGS += -fdollars-in-identifiers
				
				# alternatively, we can use a different separator
				PFLAGS += -fnesc-separator=__
				
				buildelf: FORCE
					@echo "    building ELF output $(MAIN_ELF) for debugging in AVR Studio"
					@perl -pe 's/#(.*)\"(.*)\"/ "#$$1\"".`cygpath -ma $$2`."\""/e; s/\n\"/\"/;' $(BUILDDIR)/app.c > $(APPC_WINPATH)
					@$(NCC) -o $(MAIN_ELF) $(NCC_SAFE_TINYOS_FLAGS) $(OPTFLAGS) $(PFLAGS) $(CFLAGS) $(APPC_WINPATH) $(LIBS) $(LDFLAGS)
							

相关资源