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

📄 makefile

📁 ucos mips linux 光盘所得
💻
字号:
# # # Author: Seeger Chin# e-mail: seeger.chin@gmail.com# # Copyright (C) 2006 Ingenic Semiconductor Inc.# # This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License version 2 as# published by the Free Software Foundation.# # # select which module to compile, set value to 1 for the module to compile, remain blank for the module not to compile# -----------------------------JZ4740_PAV = 1# ------------------------------CC	:= mipsel-linux-gccAR	:= mipsel-linux-ar rcsvLD	:= mipsel-linux-ldOBJCOPY	:= mipsel-linux-objcopyNM	:= mipsel-linux-nmOBJDUMP	:= mipsel-linux-objdumpCFLAGS	:= -mips32 -O2 -mno-abicalls -fno-pic -fno-builtin \	   -fno-exceptions -ffunction-sections -finit-priority \	   -fomit-frame-pointer -msoft-float -G 0LIBS	:= -lstdc++ -lc -lm -lgccTOP	:= ../..OSDIR	:= $(TOP)/srcARCHDIR	:= $(TOP)/mipsSOCDIR	:= $(TOP)/jz4740NANDBOOT:= $(TOP)/jz4740/nandbootLIBDIR	:= SOURCES	:= $(wildcard $(NANDBOOT)/*.c)#SOURCES	+= $(wildcard $(ARCHDIR)/*.S)HEADS	+= $(NANDBOOT)/start.S CFLAGS  += -DJZ4740_PAV=$(JZ4740_PAV)CFLAGS	+= -I$(SOCDIR)/include -I$(ARCHDIR) -I$(NANDBOOT)VPATH	:= $(ARCHDIR) $(NANDBOOT)OBJS	:= $(addsuffix .o , $(basename $(notdir $(SOURCES))))HEADO	:= $(addsuffix .o , $(basename $(notdir $(HEADS))))APP	:= nand.elfall:	$(APP)	$(OBJCOPY) -O binary $(APP) nand.bin	$(OBJDUMP) -d $(APP) > nand.dump	$(NM) $(APP) | sort > nand.sym	$(OBJDUMP) -h $(APP) > nand.map$(APP):	$(HEADO) $(OBJS) $(EXTLIBS) u-boot-nand.lds makefile	$(CC) -nostdlib -T u-boot-nand.lds -o $@ $(HEADO) $(OBJS) $(EXTLIBS) $(LIBS).c.o:	$(CC) $(CFLAGS) -o $@ -c $<.cpp.o:	$(CC) $(CFLAGS) -fno-rtti -fvtable-gc -o $@ -c $<.S.o:	$(CC) $(CFLAGS) -D_ASSEMBLER_ -D__ASSEMBLY__ -o $@ -c $<clean:	rm -fr *.o $(APP) $(OBJS) core $(OTHER) *.sym *.map *.dump *.bin *.lib

⌨️ 快捷键说明

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