1*e831ad54Swdenk# 2*e831ad54Swdenk# (C) Copyright 2000, 2001 3*e831ad54Swdenk# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4*e831ad54Swdenk# 5*e831ad54Swdenk# See file CREDITS for list of people who contributed to this 6*e831ad54Swdenk# project. 7*e831ad54Swdenk# 8*e831ad54Swdenk# This program is free software; you can redistribute it and/or 9*e831ad54Swdenk# modify it under the terms of the GNU General Public License as 10*e831ad54Swdenk# published by the Free Software Foundation; either version 2 of 11*e831ad54Swdenk# the License, or (at your option) any later version. 12*e831ad54Swdenk# 13*e831ad54Swdenk# This program is distributed in the hope that it will be useful, 14*e831ad54Swdenk# but WITHOUT ANY WARRANTY; without even the implied warranty of 15*e831ad54Swdenk# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16*e831ad54Swdenk# GNU General Public License for more details. 17*e831ad54Swdenk# 18*e831ad54Swdenk# You should have received a copy of the GNU General Public License 19*e831ad54Swdenk# along with this program; if not, write to the Free Software 20*e831ad54Swdenk# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 21*e831ad54Swdenk# MA 02111-1307 USA 22*e831ad54Swdenk# 23*e831ad54Swdenk 24*e831ad54Swdenkinclude $(TOPDIR)/config.mk 25*e831ad54Swdenk 26*e831ad54SwdenkLIB = libcommon.a 27*e831ad54Swdenk 28*e831ad54SwdenkAOBJS = 29*e831ad54Swdenk 30*e831ad54SwdenkCOBJS = main.o altera.o bedbug.o \ 31*e831ad54Swdenk cmd_autoscript.o cmd_bedbug.o cmd_boot.o \ 32*e831ad54Swdenk cmd_bootm.o cmd_cache.o cmd_console.o cmd_date.o \ 33*e831ad54Swdenk cmd_dcr.o cmd_diag.o cmd_doc.o cmd_dtt.o \ 34*e831ad54Swdenk cmd_eeprom.o cmd_elf.o cmd_fdc.o cmd_flash.o \ 35*e831ad54Swdenk cmd_fpga.o cmd_i2c.o cmd_ide.o cmd_immap.o \ 36*e831ad54Swdenk cmd_jffs2.o cmd_mem.o cmd_mii.o cmd_misc.o \ 37*e831ad54Swdenk cmd_net.o cmd_nvedit.o env_common.o \ 38*e831ad54Swdenk env_flash.o env_eeprom.o env_nvram.o env_nowhere.o \ 39*e831ad54Swdenk cmd_pci.o cmd_pcmcia.o \ 40*e831ad54Swdenk cmd_reginfo.o cmd_scsi.o cmd_vfd.o cmd_usb.o \ 41*e831ad54Swdenk command.o console.o devices.o dlmalloc.o \ 42*e831ad54Swdenk docecc.o environment.o flash.o fpga.o \ 43*e831ad54Swdenk hush.o kgdb.o lists.o miiphybb.o miiphyutil.o \ 44*e831ad54Swdenk s_record.o soft_i2c.o soft_spi.o cmd_spi.o spartan2.o \ 45*e831ad54Swdenk usb.o usb_kbd.o usb_storage.o \ 46*e831ad54Swdenk virtex2.o xilinx.o 47*e831ad54Swdenk 48*e831ad54SwdenkOBJS = $(AOBJS) $(COBJS) 49*e831ad54Swdenk 50*e831ad54SwdenkCPPFLAGS += -I.. 51*e831ad54Swdenk 52*e831ad54Swdenkall: $(LIB) $(AOBJS) 53*e831ad54Swdenk 54*e831ad54Swdenk$(LIB): .depend $(OBJS) 55*e831ad54Swdenk $(AR) crv $@ $(OBJS) 56*e831ad54Swdenk 57*e831ad54Swdenkenvironment.o: environment.c ../tools/envcrc 58*e831ad54Swdenk $(CC) $(AFLAGS) -Wa,--no-warn \ 59*e831ad54Swdenk -DENV_CRC=$(shell ../tools/envcrc) \ 60*e831ad54Swdenk -c -o $@ environment.c 61*e831ad54Swdenk 62*e831ad54Swdenk######################################################################### 63*e831ad54Swdenk 64*e831ad54Swdenk.depend: Makefile $(AOBJS:.o=.S) $(COBJS:.o=.c) 65*e831ad54Swdenk $(CC) -M $(CFLAGS) $(AOBJS:.o=.S) $(COBJS:.o=.c) > $@ 66*e831ad54Swdenk 67*e831ad54Swdenksinclude .depend 68*e831ad54Swdenk 69*e831ad54Swdenk######################################################################### 70