blob: ab8eb8f729fc93a853ef9eb050878895408ceacd [file] [log] [blame]
Mingkai Hue04004b2013-07-04 17:33:43 +08001#
2# Copyright 2013 Freescale Semiconductor, Inc.
3#
York Sunb33ba9a2013-08-12 14:57:12 -07004# SPDX-License-Identifier: GPL-2.0+
Mingkai Hue04004b2013-07-04 17:33:43 +08005
6include $(TOPDIR)/config.mk
7
8LIB = $(obj)lib$(BOARD).o
9
10COBJS-y += $(BOARD).o
11COBJS-y += cpld.o
12COBJS-y += ddr.o
13COBJS-y += law.o
14COBJS-y += tlb.o
15
16SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
17OBJS := $(addprefix $(obj),$(COBJS-y))
18SOBJS := $(addprefix $(obj),$(SOBJS))
19
20$(LIB): $(obj).depend $(OBJS) $(SOBJS)
21 $(call cmd_link_o_target, $(OBJS))
22
23#########################################################################
24
25# defines $(obj).depend target
26include $(SRCTREE)/rules.mk
27
28sinclude $(obj).depend
29
30#########################################################################