blob: f6a297c9daf05051824622d106f96481fa69a6a0 [file] [log] [blame]
Chandan Nath1c959692011-10-14 02:58:22 +00001#
2# Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
3#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
Chandan Nath1c959692011-10-14 02:58:22 +00005#
6
7include $(TOPDIR)/config.mk
8
9LIB = $(obj)lib$(SOC).o
10
Matt Porter57da6662013-03-15 10:07:04 +000011COBJS-$(CONFIG_AM33XX) += clock_am33xx.o
12COBJS-$(CONFIG_TI814X) += clock_ti814x.o
Lokesh Vutla85b59362013-07-30 11:36:29 +053013COBJS-$(CONFIG_AM43XX) += clock_am43xx.o
14
15ifneq ($(CONFIG_AM43XX)$(CONFIG_AM33XX),)
16COBJS += clock.o
17endif
18
TENART Antoine35c7e522013-07-02 12:05:59 +020019COBJS-$(CONFIG_TI816X) += clock_ti816x.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#########################################################################