blob: 4a36673b449e33e2761c398cfc39ca106700172e [file] [log] [blame]
wdenke831ad52002-10-17 21:52:26 +00001#
wdenk232c1502004-03-12 00:14:09 +00002# (C) Copyright 2004
wdenke831ad52002-10-17 21:52:26 +00003# 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
wdenk232c1502004-03-12 00:14:09 +000015# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
wdenke831ad52002-10-17 21:52:26 +000016# 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
wdenk5da627a2003-10-09 20:09:04 +000030COBJS = main.o ACEX1K.o altera.o bedbug.o \
wdenk3f85ce22004-02-23 16:11:30 +000031 cmd_ace.o cmd_autoscript.o \
wdenk8bde7f72003-06-27 21:31:46 +000032 cmd_bdinfo.o cmd_bedbug.o cmd_bmp.o cmd_boot.o cmd_bootm.o \
33 cmd_cache.o cmd_console.o \
34 cmd_date.o cmd_dcr.o cmd_diag.o cmd_doc.o cmd_dtt.o \
wdenk71f95112003-06-15 22:40:42 +000035 cmd_eeprom.o cmd_elf.o \
wdenk8bde7f72003-06-27 21:31:46 +000036 cmd_fat.o cmd_fdc.o cmd_fdos.o cmd_flash.o cmd_fpga.o \
wdenk2d1a5372004-02-23 19:30:57 +000037 cmd_i2c.o cmd_ide.o cmd_immap.o cmd_itest.o cmd_jffs2.o \
wdenk8bde7f72003-06-27 21:31:46 +000038 cmd_load.o cmd_log.o \
39 cmd_mem.o cmd_mii.o cmd_misc.o cmd_mmc.o \
40 cmd_nand.o cmd_net.o cmd_nvedit.o \
wdenk7a8e9bed2003-05-31 18:35:21 +000041 cmd_pci.o cmd_pcmcia.o cmd_portio.o \
wdenk518e2e12004-03-25 14:59:05 +000042 cmd_reginfo.o cmd_reiser.o cmd_scsi.o cmd_spi.o cmd_usb.o cmd_vfd.o \
wdenk8bde7f72003-06-27 21:31:46 +000043 command.o console.o devices.o dlmalloc.o docecc.o \
44 environment.o env_common.o \
wdenk13a56952004-06-09 14:58:14 +000045 env_nand.o env_dataflash.o env_flash.o env_eeprom.o env_nvram.o env_nowhere.o exports.o \
wdenk8bde7f72003-06-27 21:31:46 +000046 flash.o fpga.o \
wdenk2d1a5372004-02-23 19:30:57 +000047 hush.o kgdb.o lists.o lynxkdi.o memsize.o miiphybb.o miiphyutil.o \
wdenk8bde7f72003-06-27 21:31:46 +000048 s_record.o soft_i2c.o soft_spi.o spartan2.o \
wdenke831ad52002-10-17 21:52:26 +000049 usb.o usb_kbd.o usb_storage.o \
wdenk232c1502004-03-12 00:14:09 +000050 virtex2.o xilinx.o circbuf.o
wdenke831ad52002-10-17 21:52:26 +000051
52OBJS = $(AOBJS) $(COBJS)
53
54CPPFLAGS += -I..
55
56all: $(LIB) $(AOBJS)
57
wdenk232c1502004-03-12 00:14:09 +000058$(LIB): .depend $(OBJS)
wdenke831ad52002-10-17 21:52:26 +000059 $(AR) crv $@ $(OBJS)
60
61environment.o: environment.c ../tools/envcrc
62 $(CC) $(AFLAGS) -Wa,--no-warn \
63 -DENV_CRC=$(shell ../tools/envcrc) \
64 -c -o $@ environment.c
65
wdenka8c7c702003-12-06 19:49:23 +000066../tools/envcrc:
67 $(MAKE) -C ../tools
68
wdenke831ad52002-10-17 21:52:26 +000069#########################################################################
70
71.depend: Makefile $(AOBJS:.o=.S) $(COBJS:.o=.c)
72 $(CC) -M $(CFLAGS) $(AOBJS:.o=.S) $(COBJS:.o=.c) > $@
73
74sinclude .depend
75
76#########################################################################