blob: c97e30d441ca8f1d0eaf201933fd0cccd2aa73c5 [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
Matt Porter57da6662013-03-15 10:07:04 +000019COBJS-$(CONFIG_AM33XX) += clock_am33xx.o
20COBJS-$(CONFIG_TI814X) += clock_ti814x.o
Chandan Nath1c959692011-10-14 02:58:22 +000021COBJS += sys_info.o
Ilya Yanok2ebbb862012-11-06 13:06:30 +000022COBJS += mem.o
Chandan Nath98b036e2011-10-14 02:58:24 +000023COBJS += ddr.o
24COBJS += emif4.o
Chandan Nath7d744102011-10-14 02:58:26 +000025COBJS += board.o
Peter Korsgaard5d3f6822012-10-18 01:21:11 +000026COBJS += mux.o
Mansoor Ahamed59e38b42012-11-06 13:06:32 +000027COBJS-$(CONFIG_NAND_OMAP_GPMC) += elm.o
Chandan Nath1c959692011-10-14 02:58:22 +000028
29SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
30OBJS := $(addprefix $(obj),$(COBJS) $(COBJS-y) $(SOBJS))
31
32all: $(obj).depend $(LIB)
33
34$(LIB): $(OBJS)
35 $(call cmd_link_o_target, $(OBJS))
36
37clean:
38 rm -f $(SOBJS) $(OBJS)
39
40distclean: clean
41 rm -f $(LIB) core *.bak .depend
42
43#########################################################################
44
45# defines $(obj).depend target
46include $(SRCTREE)/rules.mk
47
48sinclude $(obj).depend
49
50#########################################################################