makefile

来自「This a simple bootloader for AT91SAM7{S,」· 代码 · 共 52 行

TXT
52
字号
# Makefile for the Flash Memory Test App# by Adam Pierce <adam@doctort.org># 15-Apr-2007## This is public domain software. You may use it# for any purpose whatsoever.TARGET   = FlashTestLINKMAP  = ram-ln.cmdLIBDIR   = -L/usr/local/arm7/lib/gcc/arm-elf/4.1.1 -L/usr/local/arm7/arm-elf/lib# Our tools.CC       = arm-elf-gccLD       = arm-elf-ld
AS       = arm-elf-as
CP       = arm-elf-objcopy
# Commandline options for each tool.
CFLAGS   = -fno-common -O0AFLAGS   = -ahls -mapcs-32
LDFLAGS  = -v -Map $(TARGET).map -T$(LINKMAP) $(LIBDIR)
CPFLAGS  = --output-target=ihex
# C source files.CSOURCES   = syscalls.c $(TARGET).cCOBJS      = $(CSOURCES:.c=.o)# Libraries.LIBS       = -lc -lgcc# Our target.all: $(TARGET).hexclean:	rm -f *.o *.hex *.elf *.map *.lst core *~# Convert ELF binary to Intel HEX file.$(TARGET).hex: $(TARGET).elf	$(CP) $(CPFLAGS) $(TARGET).elf $(TARGET).hex# Link - this produces an ELF binary.$(TARGET).elf: crt.o $(COBJS)	$(LD) $(LDFLAGS) -o $(TARGET).elf crt.o $(COBJS) $(LIBS)# Compile all C code..c.o:	$(CC) $(CFLAGS) -c $<# Compile the C runtime environment.crt.o: ram-crt.s	$(AS) $(AFLAGS) -o crt.o ram-crt.s > crt.lst

⌨️ 快捷键说明

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