blob: 5c2592f5216383e4b9f5d385d8e6aa947b7a27a3 [file] [log] [blame]
wdenke831ad52002-10-17 21:52:26 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2004-2006
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
Marian Balakowiczf9328632006-09-01 19:49:50 +020026LIB = $(obj)libcommon.a
wdenke831ad52002-10-17 21:52:26 +000027
28AOBJS =
29
Grant Likelyf0037c52007-09-24 09:05:30 -060030COBJS-y += main.o
31COBJS-y += ACEX1K.o
32COBJS-y += altera.o
33COBJS-y += bedbug.o
34COBJS-y += circbuf.o
35COBJS-y += cmd_autoscript.o
36COBJS-y += cmd_bdinfo.o
37COBJS-y += cmd_bedbug.o
38COBJS-y += cmd_bmp.o
39COBJS-y += cmd_boot.o
40COBJS-y += cmd_bootm.o
41COBJS-y += cmd_cache.o
42COBJS-y += cmd_console.o
43COBJS-y += cmd_date.o
44COBJS-y += cmd_dcr.o
45COBJS-y += cmd_diag.o
46COBJS-y += cmd_display.o
47COBJS-y += cmd_doc.o
48COBJS-y += cmd_dtt.o
49COBJS-y += cmd_eeprom.o
50COBJS-y += cmd_elf.o
51COBJS-y += cmd_ext2.o
52COBJS-y += cmd_fat.o
53COBJS-y += cmd_fdc.o
54COBJS-y += cmd_fdt.o
55COBJS-y += cmd_fdos.o
56COBJS-y += cmd_flash.o
57COBJS-y += cmd_fpga.o
58COBJS-y += cmd_i2c.o
59COBJS-y += cmd_ide.o
60COBJS-y += cmd_immap.o
61COBJS-y += cmd_itest.o
62COBJS-y += cmd_jffs2.o
63COBJS-y += cmd_load.o
64COBJS-y += cmd_log.o
65COBJS-y += cmd_mem.o
66COBJS-y += cmd_mii.o
67COBJS-y += cmd_misc.o
68COBJS-y += cmd_mmc.o
69COBJS-y += cmd_nand.o
70COBJS-y += cmd_net.o
71COBJS-y += cmd_nvedit.o
72COBJS-y += cmd_onenand.o
73COBJS-y += cmd_pci.o
74COBJS-y += cmd_pcmcia.o
75COBJS-y += cmd_portio.o
76COBJS-y += cmd_reginfo.o
77COBJS-y += cmd_reiser.o
78COBJS-y += cmd_sata.o
79COBJS-y += cmd_scsi.o
80COBJS-y += cmd_spi.o
81COBJS-y += cmd_universe.o
82COBJS-y += cmd_usb.o
83COBJS-y += cmd_vfd.o
84COBJS-y += command.o
85COBJS-y += console.o
86COBJS-y += cyclon2.o
87COBJS-y += devices.o
88COBJS-y += dlmalloc.o
89COBJS-y += docecc.o
90COBJS-y += environment.o
91COBJS-y += env_common.o
92COBJS-y += env_nand.o
93COBJS-y += env_dataflash.o
94COBJS-y += env_flash.o
95COBJS-y += env_eeprom.o
96COBJS-y += env_onenand.o
97COBJS-y += env_nvram.o
98COBJS-y += env_nowhere.o
99COBJS-y += exports.o
100COBJS-y += fdt_support.o
101COBJS-y += flash.o
102COBJS-y += fpga.o
103COBJS-y += ft_build.o
104COBJS-y += hush.o
105COBJS-y += kgdb.o
106COBJS-y += lcd.o
107COBJS-y += lists.o
108COBJS-y += lynxkdi.o
109COBJS-y += memsize.o
110COBJS-y += miiphybb.o
111COBJS-y += miiphyutil.o
112COBJS-y += s_record.o
113COBJS-y += serial.o
114COBJS-y += soft_i2c.o
115COBJS-y += soft_spi.o
116COBJS-y += spartan2.o
117COBJS-y += spartan3.o
118COBJS-y += usb.o
119COBJS-y += usb_kbd.o
120COBJS-y += usb_storage.o
121COBJS-y += virtex2.o
122COBJS-y += xilinx.o
123COBJS-y += crc16.o
124COBJS-y += xyzModem.o
125COBJS-y += cmd_mac.o
126COBJS-y += cmd_mfsl.o
wdenke831ad52002-10-17 21:52:26 +0000127
Grant Likelyf0037c52007-09-24 09:05:30 -0600128COBJS := $(COBJS-y)
Marian Balakowiczf9328632006-09-01 19:49:50 +0200129SRCS := $(AOBJS:.o=.S) $(COBJS:.o=.c)
130OBJS := $(addprefix $(obj),$(AOBJS) $(COBJS))
wdenke831ad52002-10-17 21:52:26 +0000131
132CPPFLAGS += -I..
133
134all: $(LIB) $(AOBJS)
135
Marian Balakowiczf9328632006-09-01 19:49:50 +0200136$(LIB): $(obj).depend $(OBJS)
Wolfgang Denk2b208f52006-10-09 01:02:05 +0200137 $(AR) $(ARFLAGS) $@ $(OBJS)
wdenke831ad52002-10-17 21:52:26 +0000138
Marian Balakowiczf9328632006-09-01 19:49:50 +0200139$(obj)environment.o: $(src)environment.c $(obj)../tools/envcrc
wdenke831ad52002-10-17 21:52:26 +0000140 $(CC) $(AFLAGS) -Wa,--no-warn \
Marian Balakowiczf9328632006-09-01 19:49:50 +0200141 -DENV_CRC=$(shell $(obj)../tools/envcrc) \
142 -c -o $@ $(src)environment.c
wdenke831ad52002-10-17 21:52:26 +0000143
Marian Balakowiczf9328632006-09-01 19:49:50 +0200144$(obj)../tools/envcrc:
wdenka8c7c702003-12-06 19:49:23 +0000145 $(MAKE) -C ../tools
146
wdenke831ad52002-10-17 21:52:26 +0000147#########################################################################
148
Marian Balakowiczf9328632006-09-01 19:49:50 +0200149# defines $(obj).depend target
150include $(SRCTREE)/rules.mk
wdenke831ad52002-10-17 21:52:26 +0000151
Marian Balakowiczf9328632006-09-01 19:49:50 +0200152sinclude $(obj).depend
wdenke831ad52002-10-17 21:52:26 +0000153
154#########################################################################