⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 tinyos最新版
💻
字号:
# $Id: Makefile,v 1.12 2004/08/17 16:07:15 jwhui Exp $## Bootloader for mica2, mica2dot, and telos platforms# # This bootloader is a self-contained executable. Meaning that when# executed, it will go through the normal init sequence (i.e. set up# stack, initialize data segment, etc).  Thus, a node can be set to# always boot into the bootloader first, before invoking the# application. This allows the user to input a special gesture# (i.e. reset the node 3 times quickly) to load a golden image stored# in flash onto the node.## @author Jonathan Hui <jwhui@cs.berkeley.edu># @since  0.1#PRG            = bootloaderOBJ            = bootloader.oOPTIMIZE       = -OsIFLAGS         = -Wall,-adhlmsn=$(<:.c=.lst)ifeq ($(PLATFORMS)_x, _x)	PLATFORMS = mica2 mica2dot micaz telosendifdefine USAGEUsage: 	make <platform>	make all	make clean	make cleanall	Valid platforms are: $(PLATFORMS)endefPLATAUX=$(PLATFORMS) all clean cleanallPLATFORM := $(filter $(PLATAUX), $(MAKECMDGOALS))ifeq ($(PLATFORM)_x,_x)$(error $(PLATAUX) $(MAKECMDGOALS) $(USAGE))endififeq ($(PLATFORM),mica2)	INCDIR           = -I./include/avr -I./include/mica2 -I/opt/avr/include	CC 		 = avr-gcc	OBJ	        += avr_flash.o	MCU_TARGET       = atmega128	BOOTLOADER_START = 0x1f000	BOOTLOADER_END   = 0x1ffff	OBJCOPY          = avr-objcopy	OBJDUMP          = avr-objdump	DEFS             = -DPLATFORM_MICA2endififeq ($(PLATFORM),mica2dot)	INCDIR           = -I./include/avr -I./include/mica2dot -I/opt/avr/include	CC 		 = avr-gcc	OBJ	        += avr_flash.o	MCU_TARGET       = atmega128	BOOTLOADER_START = 0x1f000	BOOTLOADER_END   = 0x1ffff	OBJCOPY          = avr-objcopy	OBJDUMP          = avr-objdump	DEFS             = -DPLATFORM_MICA2DOTendififeq ($(PLATFORM),micaz)	INCDIR           = -I./include/avr -I./include/micaz -I/opt/avr/include	CC 		 = avr-gcc	OBJ	        += avr_flash.o	MCU_TARGET       = atmega128	BOOTLOADER_START = 0x1f000	BOOTLOADER_END   = 0x1ffff	OBJCOPY          = avr-objcopy	OBJDUMP          = avr-objdump	DEFS             = -DPLATFORM_MICAZendififeq ($(PLATFORM),telos)	INCDIR           = -I./include/msp -I./include/telos -I/cygdrive/c/mspgcc/msp430/include	CC 		 = msp430-gcc	OBJ	        += msp_flash.o	MCU_TARGET       = msp430x149	BOOTLOADER_START = 0x1100	BOOTLOADER_END   = 0x2fff	OBJCOPY          = msp430-objcopy	OBJDUMP          = msp430-objdump	DEFS             = -DPLATFORM_TELOSendifDEFS    += -DBOOTLOADER_START=$(BOOTLOADER_START) -DBOOTLOADER_END=$(BOOTLOADER_END)CFLAGS   = $(OPTIMIZE) $(IFLAGS) -mmcu=$(MCU_TARGET) $(DEFS) $(INCDIR)LDFLAGS  = -Wl,-Map,$(PRG).map,--section-start=.text=$(BOOTLOADER_START)mica2: clean $(PRG).elf lst srec	mv bootloader.srec bl_mica2.srecmica2dot: clean $(PRG).elf lst srec	mv bootloader.srec bl_mica2dot.srecmicaz: clean $(PRG).elf lst srec	mv bootloader.srec bl_micaz.srectelos: clean $(PRG).elf lst ihex	mv bootloader.ihex bl_telos.ihexall:	for platform in $(PLATFORMS); do \		$(MAKE) $$platform || exit 1; \	doneclean:	rm -rf $(PRG).elf $(PRG).srec $(PRG).ihex *.o *.lst *.map *~cleanall:	rm -rf $(PRG).elf *.srec *.ihex *.o *.lst *.map *~$(PRG).elf: $(OBJ)	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^lst: $(PRG).lst%.lst: %.elf	$(OBJDUMP) -h -S $< > $@ihex: $(PRG).ihexsrec: $(PRG).srec%.ihex: %.elf	$(OBJCOPY) -j .text -j .data -O ihex $< $@%.srec: %.elf	$(OBJCOPY) -j .text -j .data -O srec $< $@

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -