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

📄 makefile

📁 uboot详细解读可用启动引导LINUX2.6内核
💻
字号:
## (C) Copyright 2007 Semihalf## See file CREDITS for list of people who contributed to this# project.## This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License as# published by the Free Software Foundatio; either version 2 of# the License, or (at your option) any later version.## This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU General Public License for more details.## You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 59 Temple Place, Suite 330, Boston,# MA 02111-1307 USA#ifeq ($(ARCH),ppc)LOAD_ADDR = 0x40000endif#ifeq ($(ARCH),arm)#LOAD_ADDR = 0xc100000#endifinclude $(TOPDIR)/config.mkELF-$(CONFIG_API) += demoBIN-$(CONFIG_API) += demo.binELF	:= $(ELF-y)BIN	:= $(BIN-y)#CFLAGS += -vCOBJS-$(CONFIG_API) += $(ELF:=.o)SOBJS-$(CONFIG_API) += crt0.oifeq ($(ARCH),ppc)SOBJS-$(CONFIG_API) += ppcstring.oendifCOBJS	:= $(COBJS-y)SOBJS	:= $(SOBJS-y)LIB	= $(obj)libglue.aLIBCOBJS-$(CONFIG_API) += glue.o crc32.o ctype.o string.o vsprintf.o \				libgenwrap.oLIBCOBJS := $(LIBCOBJS-y)LIBOBJS	= $(addprefix $(obj),$(SOBJS) $(LIBCOBJS))SRCS	:= $(COBJS:.o=.c) $(LIBCOBJS:.o=.c) $(SOBJS:.o=.S)OBJS	:= $(addprefix $(obj),$(COBJS))ELF	:= $(addprefix $(obj),$(ELF))BIN	:= $(addprefix $(obj),$(BIN))gcclibdir := $(shell dirname `$(CC) -print-libgcc-file-name`)CPPFLAGS += -I..all:	$(obj).depend $(OBJS) $(LIB) $(ELF) $(BIN)#########################################################################$(LIB):	$(obj).depend $(LIBOBJS)		$(AR) $(ARFLAGS) $@ $(LIBOBJS)$(ELF):$(obj)%:	$(obj)%.o $(LIB)		$(LD) $(obj)crt0.o -Ttext $(LOAD_ADDR) \			-o $@ $< $(LIB) \			-L$(gcclibdir) -lgcc$(BIN):$(obj)%.bin:	$(obj)%		$(OBJCOPY) -O binary $< $@ 2>/dev/null$(obj)crc32.c:	@rm -f $(obj)crc32.c	ln -s $(src)../lib_generic/crc32.c $(obj)crc32.c$(obj)ctype.c:	@rm -f $(obj)ctype.c	ln -s $(src)../lib_generic/ctype.c $(obj)ctype.c$(obj)string.c:	@rm -f $(obj)string.c	ln -s $(src)../lib_generic/string.c $(obj)string.c$(obj)vsprintf.c:	@rm -f $(obj)vsprintf.c	ln -s $(src)../lib_generic/vsprintf.c $(obj)vsprintf.cifeq ($(ARCH),ppc)$(obj)ppcstring.S:	@rm -f $(obj)ppcstring.S	ln -s $(src)../lib_ppc/ppcstring.S $(obj)ppcstring.Sendif########################################################################## defines $(obj).depend targetinclude $(SRCTREE)/rules.mksinclude $(obj).depend#########################################################################

⌨️ 快捷键说明

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