blob: 8f0057b1a64d13fe65d68237a591b8d017d08e72 [file] [log] [blame]
Prabhakar Kushwaha7d436072013-09-12 11:11:28 +05301#
2# Copyright 2013 Freescale Semiconductor, Inc.
3#
4# SPDX-License-Identifier: GPL-2.0+
5#
6
7include $(TOPDIR)/config.mk
8
9LIB = $(obj)lib$(BOARD).o
10
11COBJS-y += $(BOARD).o
12COBJS-y += ddr.o
13COBJS-$(CONFIG_PCI) += pci.o
14COBJS-y += law.o
15COBJS-y += tlb.o
16
17SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
18OBJS := $(addprefix $(obj),$(COBJS-y))
19SOBJS := $(addprefix $(obj),$(SOBJS))
20
21$(LIB): $(obj).depend $(OBJS) $(SOBJS)
22 $(call cmd_link_o_target, $(OBJS))
23
24clean:
25 rm -f $(OBJS) $(SOBJS)
26
27distclean: clean
28 rm -f $(LIB) core *.bak .depend
29
30#########################################################################
31
32# defines $(obj).depend target
33include $(SRCTREE)/rules.mk
34
35sinclude $(obj).depend
36
37#########################################################################