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