1# 2# Copyright 2007-2009 Freescale Semiconductor, Inc. 3# (C) Copyright 2001-2006 4# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 5# 6# SPDX-License-Identifier: GPL-2.0+ 7# 8 9include $(TOPDIR)/config.mk 10 11LIB = $(obj)lib$(BOARD).o 12 13COBJS-y += $(BOARD).o 14COBJS-y += ddr.o 15COBJS-$(CONFIG_P3041DS) += eth_hydra.o 16COBJS-$(CONFIG_P4080DS) += eth_p4080.o 17COBJS-$(CONFIG_P5020DS) += eth_hydra.o 18COBJS-$(CONFIG_P5040DS) += eth_superhydra.o 19COBJS-$(CONFIG_P3041DS) += p3041ds_ddr.o 20COBJS-$(CONFIG_P4080DS) += p4080ds_ddr.o 21COBJS-$(CONFIG_P5020DS) += p5020ds_ddr.o 22COBJS-$(CONFIG_P5040DS) += p5040ds_ddr.o 23 24SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) 25OBJS := $(addprefix $(obj),$(COBJS-y)) 26SOBJS := $(addprefix $(obj),$(SOBJS)) 27 28$(LIB): $(obj).depend $(OBJS) $(SOBJS) 29 $(call cmd_link_o_target, $(OBJS)) 30 31######################################################################### 32 33# defines $(obj).depend target 34include $(SRCTREE)/rules.mk 35 36sinclude $(obj).depend 37 38######################################################################### 39