wdenk | e831ad5 | 2002-10-17 21:52:26 +0000 | [diff] [blame] | 1 | # |
wdenk | 232c150 | 2004-03-12 00:14:09 +0000 | [diff] [blame] | 2 | # (C) Copyright 2004 |
wdenk | e831ad5 | 2002-10-17 21:52:26 +0000 | [diff] [blame] | 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 |
wdenk | 232c150 | 2004-03-12 00:14:09 +0000 | [diff] [blame] | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
wdenk | e831ad5 | 2002-10-17 21:52:26 +0000 | [diff] [blame] | 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 | |
| 24 | include $(TOPDIR)/config.mk |
| 25 | |
| 26 | LIB = libcommon.a |
| 27 | |
| 28 | AOBJS = |
| 29 | |
wdenk | 8655b6f | 2004-10-09 23:25:58 +0000 | [diff] [blame^] | 30 | COBJS = main.o ACEX1K.o altera.o bedbug.o circbuf.o \ |
wdenk | 3f85ce2 | 2004-02-23 16:11:30 +0000 | [diff] [blame] | 31 | cmd_ace.o cmd_autoscript.o \ |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 32 | 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 \ |
wdenk | 71f9511 | 2003-06-15 22:40:42 +0000 | [diff] [blame] | 35 | cmd_eeprom.o cmd_elf.o \ |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 36 | cmd_fat.o cmd_fdc.o cmd_fdos.o cmd_flash.o cmd_fpga.o \ |
wdenk | 2d1a537 | 2004-02-23 19:30:57 +0000 | [diff] [blame] | 37 | cmd_i2c.o cmd_ide.o cmd_immap.o cmd_itest.o cmd_jffs2.o \ |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 38 | 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 \ |
wdenk | 7a8e9bed | 2003-05-31 18:35:21 +0000 | [diff] [blame] | 41 | cmd_pci.o cmd_pcmcia.o cmd_portio.o \ |
wdenk | 518e2e1 | 2004-03-25 14:59:05 +0000 | [diff] [blame] | 42 | cmd_reginfo.o cmd_reiser.o cmd_scsi.o cmd_spi.o cmd_usb.o cmd_vfd.o \ |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 43 | command.o console.o devices.o dlmalloc.o docecc.o \ |
| 44 | environment.o env_common.o \ |
wdenk | 13a5695 | 2004-06-09 14:58:14 +0000 | [diff] [blame] | 45 | env_nand.o env_dataflash.o env_flash.o env_eeprom.o env_nvram.o env_nowhere.o exports.o \ |
wdenk | 8bde7f7 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 46 | flash.o fpga.o \ |
wdenk | 8655b6f | 2004-10-09 23:25:58 +0000 | [diff] [blame^] | 47 | hush.o kgdb.o lcd.o lists.o lynxkdi.o \ |
| 48 | memsize.o miiphybb.o miiphyutil.o \ |
wdenk | 281e00a | 2004-08-01 22:48:16 +0000 | [diff] [blame] | 49 | s_record.o serial.o soft_i2c.o soft_spi.o spartan2.o \ |
wdenk | e831ad5 | 2002-10-17 21:52:26 +0000 | [diff] [blame] | 50 | usb.o usb_kbd.o usb_storage.o \ |
wdenk | 8655b6f | 2004-10-09 23:25:58 +0000 | [diff] [blame^] | 51 | virtex2.o xilinx.o |
wdenk | e831ad5 | 2002-10-17 21:52:26 +0000 | [diff] [blame] | 52 | |
| 53 | OBJS = $(AOBJS) $(COBJS) |
| 54 | |
| 55 | CPPFLAGS += -I.. |
| 56 | |
| 57 | all: $(LIB) $(AOBJS) |
| 58 | |
wdenk | 232c150 | 2004-03-12 00:14:09 +0000 | [diff] [blame] | 59 | $(LIB): .depend $(OBJS) |
wdenk | e831ad5 | 2002-10-17 21:52:26 +0000 | [diff] [blame] | 60 | $(AR) crv $@ $(OBJS) |
| 61 | |
| 62 | environment.o: environment.c ../tools/envcrc |
| 63 | $(CC) $(AFLAGS) -Wa,--no-warn \ |
| 64 | -DENV_CRC=$(shell ../tools/envcrc) \ |
| 65 | -c -o $@ environment.c |
| 66 | |
wdenk | a8c7c70 | 2003-12-06 19:49:23 +0000 | [diff] [blame] | 67 | ../tools/envcrc: |
| 68 | $(MAKE) -C ../tools |
| 69 | |
wdenk | e831ad5 | 2002-10-17 21:52:26 +0000 | [diff] [blame] | 70 | ######################################################################### |
| 71 | |
| 72 | .depend: Makefile $(AOBJS:.o=.S) $(COBJS:.o=.c) |
| 73 | $(CC) -M $(CFLAGS) $(AOBJS:.o=.S) $(COBJS:.o=.c) > $@ |
| 74 | |
| 75 | sinclude .depend |
| 76 | |
| 77 | ######################################################################### |