blob: 70c443edbbb0a4ebd53f741cc0e53a3de15129e2 [file] [log] [blame]
Chandan Nath1c959692011-10-14 02:58:22 +00001#
2# Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
3#
4# This program is free software; you can redistribute it and/or
5# modify it under the terms of the GNU General Public License as
6# published by the Free Software Foundation; either version 2 of
7# the License, or (at your option) any later version.
8#
9# This program is distributed "as is" WITHOUT ANY WARRANTY of any
10# kind, whether express or implied; without even the implied warranty
11# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14
15include $(TOPDIR)/config.mk
16
17LIB = $(obj)lib$(SOC).o
18
Chandan Nath4ba33452011-10-14 02:58:23 +000019COBJS += clock.o
Chandan Nath1c959692011-10-14 02:58:22 +000020COBJS += sys_info.o
Ilya Yanok2ebbb862012-11-06 13:06:30 +000021COBJS += mem.o
Chandan Nath98b036e2011-10-14 02:58:24 +000022COBJS += ddr.o
23COBJS += emif4.o
Chandan Nath7d744102011-10-14 02:58:26 +000024COBJS += board.o
Peter Korsgaard5d3f6822012-10-18 01:21:11 +000025COBJS += mux.o
Mansoor Ahamed59e38b42012-11-06 13:06:32 +000026COBJS-$(CONFIG_NAND_OMAP_GPMC) += elm.o
Chandan Nath1c959692011-10-14 02:58:22 +000027
28SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
29OBJS := $(addprefix $(obj),$(COBJS) $(COBJS-y) $(SOBJS))
30
31all: $(obj).depend $(LIB)
32
33$(LIB): $(OBJS)
34 $(call cmd_link_o_target, $(OBJS))
35
36clean:
37 rm -f $(SOBJS) $(OBJS)
38
39distclean: clean
40 rm -f $(LIB) core *.bak .depend
41
42#########################################################################
43
44# defines $(obj).depend target
45include $(SRCTREE)/rules.mk
46
47sinclude $(obj).depend
48
49#########################################################################