blob: 45c4f8b7c1bc6f9cbc83447084f55bb8b475cd92 [file] [log] [blame]
Chunhe Lan57072332013-06-14 16:21:48 +08001#
2# Copyright 2013 Freescale Semiconductor, Inc.
3#
4# This program is free software; you can redistribute it and/or modify it
5# under the terms of the GNU General Public License as published by the Free
6# Software Foundation; either version 2 of the License, or (at your option)
7# any later version.
8#
9
10include $(TOPDIR)/config.mk
11
12LIB = $(obj)lib$(BOARD).o
13
14COBJS-y += $(BOARD).o
15COBJS-y += ddr.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
26#########################################################################
27
28# defines $(obj).depend target
29include $(SRCTREE)/rules.mk
30
31sinclude $(obj).depend
32
33#########################################################################