blob: 915b9bc895266ddf5d8de85ac2de60de979f6c20 [file] [log] [blame]
Xie Xiaobo49f5bef2013-06-24 15:01:30 +08001#
2# Copyright 2013 Freescale Semiconductor, Inc.
3#
York Sun3aab0cd2013-08-12 14:57:12 -07004# SPDX-License-Identifier: GPL-2.0+
Xie Xiaobo49f5bef2013-06-24 15:01:30 +08005
6include $(TOPDIR)/config.mk
7
8LIB = $(obj)lib$(BOARD).o
9
10COBJS-y += $(BOARD).o
11COBJS-y += ddr.o
12COBJS-y += law.o
13COBJS-y += tlb.o
14
15SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
16OBJS := $(addprefix $(obj),$(COBJS-y))
17SOBJS := $(addprefix $(obj),$(SOBJS))
18
19$(LIB): $(obj).depend $(OBJS) $(SOBJS)
20 $(call cmd_link_o_target, $(OBJS))
21
22clean:
23 rm -f $(OBJS) $(SOBJS)
24
25distclean: clean
26 rm -f $(LIB) core *.bak .depend
27
28#########################################################################
29
30# defines $(obj).depend target
31include $(SRCTREE)/rules.mk
32
33sinclude $(obj).depend
34
35#########################################################################