blob: 524e8e21342204e648cf5b81638ed39ff59fb7b7 [file] [log] [blame]
wdenke831ad52002-10-17 21:52:26 +00001#
2# (C) Copyright 2000, 2001
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
5# See file CREDITS for list of people who contributed to this
6# project.
7#
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.
12#
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.
17#
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,
21# MA 02111-1307 USA
22#
23
24include $(TOPDIR)/config.mk
25
26LIB = libcommon.a
27
28AOBJS =
29
30COBJS = main.o altera.o bedbug.o \
wdenk92bbe3f2003-04-20 14:04:18 +000031 cmd_autoscript.o cmd_bedbug.o cmd_bmp.o cmd_boot.o \
wdenke831ad52002-10-17 21:52:26 +000032 cmd_bootm.o cmd_cache.o cmd_console.o cmd_date.o \
wdenkc8434db2003-03-26 06:55:25 +000033 cmd_dcr.o cmd_diag.o cmd_doc.o cmd_nand.o cmd_dtt.o \
wdenk591dda52002-11-18 00:14:45 +000034 cmd_eeprom.o cmd_elf.o cmd_fdc.o cmd_fdos.o cmd_flash.o \
wdenke831ad52002-10-17 21:52:26 +000035 cmd_fpga.o cmd_i2c.o cmd_ide.o cmd_immap.o \
wdenk56f94be2002-11-05 16:35:14 +000036 cmd_jffs2.o cmd_log.o cmd_mem.o cmd_mii.o cmd_misc.o \
wdenke831ad52002-10-17 21:52:26 +000037 cmd_net.o cmd_nvedit.o env_common.o \
38 env_flash.o env_eeprom.o env_nvram.o env_nowhere.o \
wdenkabda5ca2003-05-31 18:35:21 +000039 cmd_pci.o cmd_pcmcia.o cmd_portio.o \
wdenke831ad52002-10-17 21:52:26 +000040 cmd_reginfo.o cmd_scsi.o cmd_vfd.o cmd_usb.o \
41 command.o console.o devices.o dlmalloc.o \
42 docecc.o environment.o flash.o fpga.o \
43 hush.o kgdb.o lists.o miiphybb.o miiphyutil.o \
44 s_record.o soft_i2c.o soft_spi.o cmd_spi.o spartan2.o \
45 usb.o usb_kbd.o usb_storage.o \
46 virtex2.o xilinx.o
47
48OBJS = $(AOBJS) $(COBJS)
49
50CPPFLAGS += -I..
51
52all: $(LIB) $(AOBJS)
53
54$(LIB): .depend $(OBJS)
55 $(AR) crv $@ $(OBJS)
56
57environment.o: environment.c ../tools/envcrc
58 $(CC) $(AFLAGS) -Wa,--no-warn \
59 -DENV_CRC=$(shell ../tools/envcrc) \
60 -c -o $@ environment.c
61
62#########################################################################
63
64.depend: Makefile $(AOBJS:.o=.S) $(COBJS:.o=.c)
65 $(CC) -M $(CFLAGS) $(AOBJS:.o=.S) $(COBJS:.o=.c) > $@
66
67sinclude .depend
68
69#########################################################################