blob: 15bef9a85b5a8173ee0b5fdf63f0ed038b67aad7 [file] [log] [blame]
Mingkai Hua8d97582013-07-04 17:33:43 +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 += cpld.o
16COBJS-y += ddr.o
17COBJS-y += law.o
18COBJS-y += tlb.o
19
20SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
21OBJS := $(addprefix $(obj),$(COBJS-y))
22SOBJS := $(addprefix $(obj),$(SOBJS))
23
24$(LIB): $(obj).depend $(OBJS) $(SOBJS)
25 $(call cmd_link_o_target, $(OBJS))
26
27#########################################################################
28
29# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33
34#########################################################################