15d108ac8SSergei Poselenov# 25d108ac8SSergei Poselenov# (C) Copyright 2008 35d108ac8SSergei Poselenov# Sergei Poselenov, Emcraft Systems, sposelenov@emcraft.com. 45d108ac8SSergei Poselenov# (C) Copyright 2001-2006 55d108ac8SSergei Poselenov# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 65d108ac8SSergei Poselenov# 75d108ac8SSergei Poselenov# See file CREDITS for list of people who contributed to this 85d108ac8SSergei Poselenov# project. 95d108ac8SSergei Poselenov# 105d108ac8SSergei Poselenov# This program is free software; you can redistribute it and/or 115d108ac8SSergei Poselenov# modify it under the terms of the GNU General Public License as 125d108ac8SSergei Poselenov# published by the Free Software Foundation; either version 2 of 135d108ac8SSergei Poselenov# the License, or (at your option) any later version. 145d108ac8SSergei Poselenov# 155d108ac8SSergei Poselenov# This program is distributed in the hope that it will be useful, 165d108ac8SSergei Poselenov# but WITHOUT ANY WARRANTY; without even the implied warranty of 175d108ac8SSergei Poselenov# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 185d108ac8SSergei Poselenov# GNU General Public License for more details. 195d108ac8SSergei Poselenov# 205d108ac8SSergei Poselenov# You should have received a copy of the GNU General Public License 215d108ac8SSergei Poselenov# along with this program; if not, write to the Free Software 225d108ac8SSergei Poselenov# Foundation, Inc., 59 Temple Place, Suite 330, Boston, 235d108ac8SSergei Poselenov# MA 02111-1307 USA 245d108ac8SSergei Poselenov# 255d108ac8SSergei Poselenov 265d108ac8SSergei Poselenovinclude $(TOPDIR)/config.mk 275d108ac8SSergei Poselenov 285d108ac8SSergei PoselenovLIB = $(obj)lib$(BOARD).a 295d108ac8SSergei Poselenov# 305d108ac8SSergei Poselenov 31*be0bd823SKumar GalaCOBJS-y += $(BOARD).o 32*be0bd823SKumar GalaCOBJS-y += law.o 33*be0bd823SKumar GalaCOBJS-y += tlb.o 34*be0bd823SKumar GalaCOBJS-y += nand.o 35*be0bd823SKumar GalaCOBJS-y += sdram.o 36*be0bd823SKumar GalaCOBJS-$(CONFIG_FSL_DDR2) += ddr.o 375d108ac8SSergei Poselenov 38*be0bd823SKumar GalaSRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) 39*be0bd823SKumar GalaOBJS := $(addprefix $(obj),$(COBJS-y)) 405d108ac8SSergei PoselenovSOBJS := $(addprefix $(obj),$(SOBJS)) 415d108ac8SSergei Poselenov 425d108ac8SSergei Poselenov$(LIB): $(obj).depend $(OBJS) $(SOBJS) 435d108ac8SSergei Poselenov $(AR) $(ARFLAGS) $@ $(OBJS) 445d108ac8SSergei Poselenov 455d108ac8SSergei Poselenovclean: 465d108ac8SSergei Poselenov rm -f $(OBJS) $(SOBJS) 475d108ac8SSergei Poselenov 485d108ac8SSergei Poselenovdistclean: clean 49c8a3b109SWolfgang Denk rm -f $(LIB) core *.bak $(obj).depend 505d108ac8SSergei Poselenov 515d108ac8SSergei Poselenov######################################################################### 525d108ac8SSergei Poselenov 535d108ac8SSergei Poselenov# defines $(obj).depend target 545d108ac8SSergei Poselenovinclude $(SRCTREE)/rules.mk 555d108ac8SSergei Poselenov 565d108ac8SSergei Poselenovsinclude $(obj).depend 575d108ac8SSergei Poselenov 585d108ac8SSergei Poselenov######################################################################### 59