xref: /openbmc/u-boot/board/sbc8349/Makefile (revision 9993e196)
191e25769SPaul Gortmaker#
291e25769SPaul Gortmaker# Copyright (c) 2006 Wind River Systems, Inc.
391e25769SPaul Gortmaker#
491e25769SPaul Gortmaker# See file CREDITS for list of people who contributed to this
591e25769SPaul Gortmaker# project.
691e25769SPaul Gortmaker#
791e25769SPaul Gortmaker# This program is free software; you can redistribute it and/or
891e25769SPaul Gortmaker# modify it under the terms of the GNU General Public License as
991e25769SPaul Gortmaker# published by the Free Software Foundation; either version 2 of
1091e25769SPaul Gortmaker# the License, or (at your option) any later version.
1191e25769SPaul Gortmaker#
1291e25769SPaul Gortmaker# This program is distributed in the hope that it will be useful,
1391e25769SPaul Gortmaker# but WITHOUT ANY WARRANTY; without even the implied warranty of
1491e25769SPaul Gortmaker# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
1591e25769SPaul Gortmaker# GNU General Public License for more details.
1691e25769SPaul Gortmaker#
1791e25769SPaul Gortmaker# You should have received a copy of the GNU General Public License
1891e25769SPaul Gortmaker# along with this program; if not, write to the Free Software
1991e25769SPaul Gortmaker# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
2091e25769SPaul Gortmaker# MA 02111-1307 USA
2191e25769SPaul Gortmaker#
2291e25769SPaul Gortmaker
2391e25769SPaul Gortmakerinclude $(TOPDIR)/config.mk
2491e25769SPaul Gortmaker
2591e25769SPaul GortmakerLIB	= $(obj)lib$(BOARD).a
2691e25769SPaul Gortmaker
27*9993e196SKim PhillipsCOBJS-y += $(BOARD).o
28*9993e196SKim PhillipsCOBJS-$(CONFIG_PCI) += pci.o
2991e25769SPaul Gortmaker
30*9993e196SKim PhillipsCOBJS   := $(COBJS-y)
3191e25769SPaul GortmakerSRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
3291e25769SPaul GortmakerOBJS	:= $(addprefix $(obj),$(COBJS))
3391e25769SPaul GortmakerSOBJS	:= $(addprefix $(obj),$(SOBJS))
3491e25769SPaul Gortmaker
3591e25769SPaul Gortmaker$(LIB):	$(obj).depend $(OBJS)
3691e25769SPaul Gortmaker	$(AR) $(ARFLAGS) $@ $(OBJS)
3791e25769SPaul Gortmaker
3891e25769SPaul Gortmakerclean:
3991e25769SPaul Gortmaker	rm -f $(SOBJS) $(OBJS)
4091e25769SPaul Gortmaker
4191e25769SPaul Gortmakerdistclean:	clean
42c8a3b109SWolfgang Denk	rm -f $(LIB) core *.bak $(obj).depend
4391e25769SPaul Gortmaker
4491e25769SPaul Gortmaker#########################################################################
4591e25769SPaul Gortmaker
4691e25769SPaul Gortmaker# defines $(obj).depend target
4791e25769SPaul Gortmakerinclude $(SRCTREE)/rules.mk
4891e25769SPaul Gortmaker
4991e25769SPaul Gortmakersinclude $(obj).depend
5091e25769SPaul Gortmaker
5191e25769SPaul Gortmaker#########################################################################
52