2 # (C) Copyright 2004-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # See file CREDITS for list of people who contributed to this
8 # This program is free software; you can redistribute it and/or
9 # modify it under the terms of the GNU General Public License as
10 # published by the Free Software Foundation; either version 2 of
11 # the License, or (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
24 include $(TOPDIR)/config.mk
26 LIB = $(obj)libcommon.a
30 COBJS = main.o ACEX1K.o altera.o bedbug.o circbuf.o cmd_autoscript.o \
31 cmd_bdinfo.o cmd_bedbug.o cmd_bmp.o cmd_boot.o cmd_bootm.o \
32 cmd_cache.o cmd_console.o \
33 cmd_date.o cmd_dcr.o cmd_diag.o cmd_display.o cmd_doc.o cmd_dtt.o \
34 cmd_eeprom.o cmd_elf.o cmd_ext2.o \
35 cmd_fat.o cmd_fdc.o cmd_fdt.o cmd_fdos.o cmd_flash.o cmd_fpga.o \
36 cmd_i2c.o cmd_ide.o cmd_immap.o cmd_itest.o cmd_jffs2.o \
37 cmd_load.o cmd_log.o \
38 cmd_mem.o cmd_mii.o cmd_misc.o cmd_mmc.o \
39 cmd_nand.o cmd_net.o cmd_nvedit.o \
41 cmd_pci.o cmd_pcmcia.o cmd_portio.o \
42 cmd_reginfo.o cmd_reiser.o cmd_sata.o cmd_scsi.o cmd_spi.o \
43 cmd_universe.o cmd_usb.o cmd_vfd.o \
44 command.o console.o cyclon2.o devices.o dlmalloc.o docecc.o \
45 environment.o env_common.o \
46 env_nand.o env_dataflash.o env_flash.o env_eeprom.o \
47 env_onenand.o env_nvram.o env_nowhere.o \
49 fdt_support.o flash.o fpga.o ft_build.o \
50 hush.o kgdb.o lcd.o lists.o lynxkdi.o \
51 memsize.o miiphybb.o miiphyutil.o \
52 s_record.o serial.o soft_i2c.o soft_spi.o spartan2.o spartan3.o \
53 usb.o usb_kbd.o usb_storage.o \
54 virtex2.o xilinx.o crc16.o xyzModem.o cmd_mac.o cmd_mfsl.o
56 SRCS := $(AOBJS:.o=.S) $(COBJS:.o=.c)
57 OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS))
63 $(LIB): $(obj).depend $(OBJS)
64 $(AR) $(ARFLAGS) $@ $(OBJS)
66 $(obj)environment.o: $(src)environment.c $(obj)../tools/envcrc
67 $(CC) $(AFLAGS) -Wa,--no-warn \
68 -DENV_CRC=$(shell $(obj)../tools/envcrc) \
69 -c -o $@ $(src)environment.c
71 $(obj)../tools/envcrc:
74 #########################################################################
76 # defines $(obj).depend target
77 include $(SRCTREE)/rules.mk
79 sinclude $(obj).depend
81 #########################################################################