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

📄 makefile

📁 F:worksip2440a board可启动u-boot-like.tar.gz F:worksip2440a board可启动u-boot-like.tar.gz
💻
字号:
## (C) Copyright 2000-2004# Wolfgang Denk, DENX Software Engineering, wd@denx.de.## 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 Foundation; 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 = 0x40000endififeq ($(ARCH),i386)LOAD_ADDR = 0x40000endififeq ($(ARCH),arm)LOAD_ADDR = 0xc100000endififeq ($(ARCH),mips)LOAD_ADDR = 0x80200000 -T mips.ldsendififeq ($(ARCH),nios)LOAD_ADDR = 0x00800000 -L $(gcclibdir)/m32 -T nios.ldsendififeq ($(ARCH),nios2)LOAD_ADDR = 0x00800000 -L $(gcclibdir) -T nios2.ldsendififeq ($(ARCH),m68k)LOAD_ADDR = 0x20000  -L $(clibdir)endififeq ($(ARCH),microblaze)LOAD_ADDR = 0x80F00000endifinclude $(TOPDIR)/config.mkSREC	= hello_world.srecBIN	= hello_world.bin hello_worldifeq ($(ARCH),i386)SREC   += 82559_eeprom.srecBIN    += 82559_eeprom.bin 82559_eepromendififeq ($(ARCH),ppc)SREC   += sched.srecBIN    += sched.bin schedendif# The following example is pretty 8xx specific...ifeq ($(CPU),mpc8xx)SREC   += timer.srecBIN    += timer.bin timerendif# The following example is 8260 specific...ifeq ($(CPU),mpc8260)SREC   += mem_to_mem_idma2intr.srecBIN    += mem_to_mem_idma2intr.bin mem_to_mem_idma2intrendif# Utility for resetting i82559 EEPROMifeq ($(BOARD),oxc)SREC   += eepro100_eeprom.srecBIN    += eepro100_eeprom.bin eepro100_eepromendififeq ($(BIG_ENDIAN),y)EX_LDFLAGS += -EBendifOBJS	= $(SREC:.srec=.o)LIB	= libstubs.aLIBAOBJS=ifeq ($(ARCH),ppc)LIBAOBJS+= $(ARCH)_longjmp.o $(ARCH)_setjmp.oendifLIBCOBJS= stubs.oLIBOBJS	= $(LIBAOBJS) $(LIBCOBJS)gcclibdir := $(shell dirname `$(CC) -print-libgcc-file-name`)clibdir := $(shell dirname `$(CC) $(CFLAGS) -print-file-name=libc.a`)CPPFLAGS += -I..all:	.depend $(LIB) $(SREC) $(BIN)#########################################################################$(LIB): .depend $(LIBOBJS)	$(AR) crv $@ $(LIBOBJS)%:	%.o $(LIB)	$(LD) -g $(EX_LDFLAGS) -Ttext $(LOAD_ADDR) \		-o $@ -e $(<:.o=) $< $(LIB) \		-L$(gcclibdir) -lgcc%.srec:	%	$(OBJCOPY) -O srec $< $@ 2>/dev/null%.bin:	%	$(OBJCOPY) -O binary $< $@ 2>/dev/null#########################################################################.depend:	Makefile $(OBJS:.o=.c) $(LIBCOBJS:.o=.c) $(LIBAOBJS:.o=.S)		$(CC) -M $(CFLAGS) $(OBJS:.o=.c) $(LIBCOBJS:.o=.c) $(LIBAOBJS:.o=.S) > $@sinclude .depend#########################################################################

⌨️ 快捷键说明

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