1*415a613bSKumar Gala# 2*415a613bSKumar Gala# Copyright 2004 Freescale Semiconductor. 3*415a613bSKumar Gala# (C) Copyright 2001-2006 4*415a613bSKumar Gala# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 5*415a613bSKumar Gala# 6*415a613bSKumar Gala# See file CREDITS for list of people who contributed to this 7*415a613bSKumar Gala# project. 8*415a613bSKumar Gala# 9*415a613bSKumar Gala# This program is free software; you can redistribute it and/or 10*415a613bSKumar Gala# modify it under the terms of the GNU General Public License as 11*415a613bSKumar Gala# published by the Free Software Foundation; either version 2 of 12*415a613bSKumar Gala# the License, or (at your option) any later version. 13*415a613bSKumar Gala# 14*415a613bSKumar Gala# This program is distributed in the hope that it will be useful, 15*415a613bSKumar Gala# but WITHOUT ANY WARRANTY; without even the implied warranty of 16*415a613bSKumar Gala# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17*415a613bSKumar Gala# GNU General Public License for more details. 18*415a613bSKumar Gala# 19*415a613bSKumar Gala# You should have received a copy of the GNU General Public License 20*415a613bSKumar Gala# along with this program; if not, write to the Free Software 21*415a613bSKumar Gala# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 22*415a613bSKumar Gala# MA 02111-1307 USA 23*415a613bSKumar Gala# 24*415a613bSKumar Gala 25*415a613bSKumar Galainclude $(TOPDIR)/config.mk 26*415a613bSKumar Galaifneq ($(OBJTREE),$(SRCTREE)) 27*415a613bSKumar Gala$(shell mkdir -p $(obj)../common) 28*415a613bSKumar Galaendif 29*415a613bSKumar Gala 30*415a613bSKumar GalaLIB = $(obj)lib$(BOARD).a 31*415a613bSKumar Gala 32*415a613bSKumar GalaCOBJS := $(BOARD).o \ 33*415a613bSKumar Gala ../common/cadmus.o \ 34*415a613bSKumar Gala ../common/eeprom.o \ 35*415a613bSKumar Gala ../common/ft_board.o \ 36*415a613bSKumar Gala ../common/via.o 37*415a613bSKumar Gala 38*415a613bSKumar GalaSOBJS := init.o 39*415a613bSKumar Gala 40*415a613bSKumar GalaSRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) 41*415a613bSKumar GalaOBJS := $(addprefix $(obj),$(COBJS)) 42*415a613bSKumar GalaSOBJS := $(addprefix $(obj),$(SOBJS)) 43*415a613bSKumar Gala 44*415a613bSKumar Gala$(LIB): $(obj).depend $(OBJS) $(SOBJS) 45*415a613bSKumar Gala $(AR) $(ARFLAGS) $@ $(OBJS) 46*415a613bSKumar Gala 47*415a613bSKumar Galaclean: 48*415a613bSKumar Gala rm -f $(OBJS) $(SOBJS) 49*415a613bSKumar Gala 50*415a613bSKumar Galadistclean: clean 51*415a613bSKumar Gala rm -f $(LIB) core *.bak .depend 52*415a613bSKumar Gala 53*415a613bSKumar Gala######################################################################### 54*415a613bSKumar Gala 55*415a613bSKumar Gala# defines $(obj).depend target 56*415a613bSKumar Galainclude $(SRCTREE)/rules.mk 57*415a613bSKumar Gala 58*415a613bSKumar Galasinclude $(obj).depend 59*415a613bSKumar Gala 60*415a613bSKumar Gala######################################################################### 61