#
# (C) Copyright 2000
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
# See file CREDITS for list of people who contributed to this
# project.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
#

include $(TOPDIR)/config.mk

LIB	= lib$(BOARD).a

OBJS	= $(BOARD).o strataflash.o
OBJS	+= led.o
OBJS	+= mfg_test.o
OBJS	+= power.o
OBJS	+= reset_button.o
OBJS	+= speaker.o
OBJS	+= ../common/ad9888.o
OBJS	+= ../common/check.o
OBJS	+= ../common/diag_menu.o
OBJS	+= ../common/dm9161.o
OBJS	+= ../common/ether_menu.o
OBJS	+= ../common/flash_menu.o
OBJS	+= ../common/i2c_menu.o
OBJS	+= ../common/image_update.o
OBJS	+= ../common/led_menu.o
OBJS	+= ../common/lcd.o
OBJS	+= ../common/lcd_menu.o
#OBJS	+= ../common/lxt972.o
OBJS	+= ../common/main_menu.o
OBJS	+= ../common/mem.o
OBJS	+= ../common/memory_menu.o
OBJS	+= ../common/mii_phy_10_100.o
OBJS	+= ../common/pca9543a.o
OBJS	+= ../common/pcf8574.o
OBJS	+= ../common/phy_dm9161_menu.o
#OBJS	+= ../common/phy_lxt972_menu.o
OBJS	+= ../common/phy_menu.o
OBJS	+= ../common/eeprom_menu.o
OBJS	+= ../common/power_menu.o
OBJS	+= ../common/raritan_console.o
OBJS	+= ../common/reset_button_menu.o
OBJS	+= ../common/rtc_menu.o
OBJS	+= ../common/setenv_menu.o
OBJS	+= ../common/speaker_menu.o
OBJS	+= ../common/update_menu.o
OBJS	+= ../common/util.o
OBJS	+= ../common/util_menu.o
OBJS	+= ../common/x1226.o
SOBJS	= init.o

$(LIB):	$(OBJS) $(SOBJS)
	$(AR) crv $@ $^

clean:
	rm -f $(SOBJS) $(OBJS)

distclean:	clean
	rm -f $(LIB) core *.bak .depend

#########################################################################

.depend:	Makefile $(SOBJS:.o=.S) $(OBJS:.o=.c)
		$(CC) -M $(CFLAGS) $(SOBJS:.o=.S) $(OBJS:.o=.c) > $@

sinclude .depend

#########################################################################
