1*91e25769SPaul Gortmaker# 2*91e25769SPaul Gortmaker# Copyright (c) 2006 Wind River Systems, Inc. 3*91e25769SPaul Gortmaker# 4*91e25769SPaul Gortmaker# See file CREDITS for list of people who contributed to this 5*91e25769SPaul Gortmaker# project. 6*91e25769SPaul Gortmaker# 7*91e25769SPaul Gortmaker# This program is free software; you can redistribute it and/or 8*91e25769SPaul Gortmaker# modify it under the terms of the GNU General Public License as 9*91e25769SPaul Gortmaker# published by the Free Software Foundation; either version 2 of 10*91e25769SPaul Gortmaker# the License, or (at your option) any later version. 11*91e25769SPaul Gortmaker# 12*91e25769SPaul Gortmaker# This program is distributed in the hope that it will be useful, 13*91e25769SPaul Gortmaker# but WITHOUT ANY WARRANTY; without even the implied warranty of 14*91e25769SPaul Gortmaker# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15*91e25769SPaul Gortmaker# GNU General Public License for more details. 16*91e25769SPaul Gortmaker# 17*91e25769SPaul Gortmaker# You should have received a copy of the GNU General Public License 18*91e25769SPaul Gortmaker# along with this program; if not, write to the Free Software 19*91e25769SPaul Gortmaker# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 20*91e25769SPaul Gortmaker# MA 02111-1307 USA 21*91e25769SPaul Gortmaker# 22*91e25769SPaul Gortmaker 23*91e25769SPaul Gortmakerinclude $(TOPDIR)/config.mk 24*91e25769SPaul Gortmaker 25*91e25769SPaul GortmakerLIB = $(obj)lib$(BOARD).a 26*91e25769SPaul Gortmaker 27*91e25769SPaul GortmakerCOBJS := $(BOARD).o pci.o 28*91e25769SPaul Gortmaker 29*91e25769SPaul GortmakerSRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) 30*91e25769SPaul GortmakerOBJS := $(addprefix $(obj),$(COBJS)) 31*91e25769SPaul GortmakerSOBJS := $(addprefix $(obj),$(SOBJS)) 32*91e25769SPaul Gortmaker 33*91e25769SPaul Gortmaker$(LIB): $(obj).depend $(OBJS) 34*91e25769SPaul Gortmaker $(AR) $(ARFLAGS) $@ $(OBJS) 35*91e25769SPaul Gortmaker 36*91e25769SPaul Gortmakerclean: 37*91e25769SPaul Gortmaker rm -f $(SOBJS) $(OBJS) 38*91e25769SPaul Gortmaker 39*91e25769SPaul Gortmakerdistclean: clean 40*91e25769SPaul Gortmaker rm -f $(LIB) core *.bak .depend 41*91e25769SPaul Gortmaker 42*91e25769SPaul Gortmaker######################################################################### 43*91e25769SPaul Gortmaker 44*91e25769SPaul Gortmaker# defines $(obj).depend target 45*91e25769SPaul Gortmakerinclude $(SRCTREE)/rules.mk 46*91e25769SPaul Gortmaker 47*91e25769SPaul Gortmakersinclude $(obj).depend 48*91e25769SPaul Gortmaker 49*91e25769SPaul Gortmaker######################################################################### 50