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