2010-07-15 21:49:03 +00:00
|
|
|
#
|
|
|
|
# Copyright 2007-2009 Freescale Semiconductor, Inc.
|
|
|
|
# (C) Copyright 2001-2006
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
|
|
|
# See file CREDITS for list of people who contributed to this
|
|
|
|
# project.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License as
|
|
|
|
# published by the Free Software Foundation; either version 2 of
|
|
|
|
# the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
# MA 02111-1307 USA
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
2010-11-05 14:48:07 +00:00
|
|
|
LIB = $(obj)lib$(BOARD).o
|
2010-07-15 21:49:03 +00:00
|
|
|
|
|
|
|
COBJS-y += $(BOARD).o
|
2010-10-18 20:46:49 +00:00
|
|
|
COBJS-y += ddr.o
|
2010-10-20 20:44:17 +00:00
|
|
|
COBJS-$(CONFIG_P3041DS) += eth_hydra.o
|
2010-10-20 20:35:16 +00:00
|
|
|
COBJS-$(CONFIG_P4080DS) += eth_p4080.o
|
2010-10-20 20:44:17 +00:00
|
|
|
COBJS-$(CONFIG_P5020DS) += eth_hydra.o
|
2012-10-23 09:40:22 +00:00
|
|
|
COBJS-$(CONFIG_P5040DS) += eth_superhydra.o
|
2011-02-09 02:00:08 +00:00
|
|
|
COBJS-$(CONFIG_P3041DS) += p3041ds_ddr.o
|
2010-10-18 20:46:49 +00:00
|
|
|
COBJS-$(CONFIG_P4080DS) += p4080ds_ddr.o
|
2011-02-09 02:00:08 +00:00
|
|
|
COBJS-$(CONFIG_P5020DS) += p5020ds_ddr.o
|
2012-10-23 09:40:22 +00:00
|
|
|
COBJS-$(CONFIG_P5040DS) += p5040ds_ddr.o
|
2010-07-15 21:49:03 +00:00
|
|
|
|
|
|
|
SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(COBJS-y))
|
|
|
|
SOBJS := $(addprefix $(obj),$(SOBJS))
|
|
|
|
|
|
|
|
$(LIB): $(obj).depend $(OBJS) $(SOBJS)
|
2010-11-05 14:48:07 +00:00
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
2010-07-15 21:49:03 +00:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
|
|
|
|
sinclude $(obj).depend
|
|
|
|
|
|
|
|
#########################################################################
|