xref: /openbmc/u-boot/board/sbc8548/Makefile (revision bd42bbb8)
111c45ebdSJoe Hamman#
211c45ebdSJoe Hamman# (C) Copyright 2004-2006
311c45ebdSJoe Hamman# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
411c45ebdSJoe Hamman#
5*bd42bbb8SPaul Gortmaker# (C) Copyright 2007 Wind River Systems Inc <www.windriver.com>.
6*bd42bbb8SPaul Gortmaker# Added support for Wind River SBC8548 board
711c45ebdSJoe Hamman#
811c45ebdSJoe Hamman# See file CREDITS for list of people who contributed to this
911c45ebdSJoe Hamman# project.
1011c45ebdSJoe Hamman#
1111c45ebdSJoe Hamman# This program is free software; you can redistribute it and/or
1211c45ebdSJoe Hamman# modify it under the terms of the GNU General Public License as
1311c45ebdSJoe Hamman# published by the Free Software Foundation; either version 2 of
1411c45ebdSJoe Hamman# the License, or (at your option) any later version.
1511c45ebdSJoe Hamman#
1611c45ebdSJoe Hamman# This program is distributed in the hope that it will be useful,
1711c45ebdSJoe Hamman# but WITHOUT ANY WARRANTY; without even the implied warranty of
1811c45ebdSJoe Hamman# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1911c45ebdSJoe Hamman# GNU General Public License for more details.
2011c45ebdSJoe Hamman#
2111c45ebdSJoe Hamman# You should have received a copy of the GNU General Public License
2211c45ebdSJoe Hamman# along with this program; if not, write to the Free Software
2311c45ebdSJoe Hamman# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
2411c45ebdSJoe Hamman# MA 02111-1307 USA
2511c45ebdSJoe Hamman#
2611c45ebdSJoe Hamman
2711c45ebdSJoe Hammaninclude $(TOPDIR)/config.mk
2811c45ebdSJoe Hamman
2911c45ebdSJoe HammanLIB	= $(obj)lib$(BOARD).a
3011c45ebdSJoe Hamman
3133b9079bSKumar GalaCOBJS-y	+= $(BOARD).o
3233b9079bSKumar GalaCOBJS-y	+= law.o
3333b9079bSKumar GalaCOBJS-y	+= tlb.o
3433b9079bSKumar GalaCOBJS-$(CONFIG_FSL_DDR2) += ddr.o
3511c45ebdSJoe Hamman
3633b9079bSKumar GalaSRCS	:= $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
3733b9079bSKumar GalaOBJS	:= $(addprefix $(obj),$(COBJS-y))
3811c45ebdSJoe HammanSOBJS	:= $(addprefix $(obj),$(SOBJS))
3911c45ebdSJoe Hamman
4011c45ebdSJoe Hamman$(LIB):	$(obj).depend $(OBJS) $(SOBJS)
4111c45ebdSJoe Hamman	$(AR) $(ARFLAGS) $@ $(OBJS)
4211c45ebdSJoe Hamman
4311c45ebdSJoe Hammanclean:
4411c45ebdSJoe Hamman	rm -f $(OBJS) $(SOBJS)
4511c45ebdSJoe Hamman
4611c45ebdSJoe Hammandistclean:	clean
47c8a3b109SWolfgang Denk	rm -f $(LIB) core *.bak $(obj).depend
4811c45ebdSJoe Hamman
4911c45ebdSJoe Hamman#########################################################################
5011c45ebdSJoe Hamman
5111c45ebdSJoe Hamman# defines $(obj).depend target
5211c45ebdSJoe Hammaninclude $(SRCTREE)/rules.mk
5311c45ebdSJoe Hamman
5411c45ebdSJoe Hammansinclude $(obj).depend
5511c45ebdSJoe Hamman
5611c45ebdSJoe Hamman#########################################################################
57