blob: 85df06690633fa783cc1eb1b5243c0c893f49b80 [file] [log] [blame]
York Sunee52b182012-10-11 07:13:37 +00001#
2# Copyright 2012 Freescale Semiconductor, Inc.
3#
Wolfgang Denk1a459662013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
York Sunee52b182012-10-11 07:13:37 +00005#
6
7include $(TOPDIR)/config.mk
8
9LIB = $(obj)lib$(BOARD).o
10
11COBJS-y += $(BOARD).o
12COBJS-y += ddr.o
13COBJS-$(CONFIG_T4240QDS)+= eth.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#########################################################################