blob: 7fd21af1f24d3b166b581ebeaa696dc334f728e6 [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 Vutla89a83bf2013-07-30 10:48:52 +053013COBJS-$(CONFIG_AM33XX) += clock.o
Chandan Nath1c959692011-10-14 02:58:22 +000014COBJS += sys_info.o
Ilya Yanok2ebbb862012-11-06 13:06:30 +000015COBJS += mem.o
Chandan Nath98b036e2011-10-14 02:58:24 +000016COBJS += ddr.o
17COBJS += emif4.o
Chandan Nath7d744102011-10-14 02:58:26 +000018COBJS += board.o
Peter Korsgaard5d3f6822012-10-18 01:21:11 +000019COBJS += mux.o
Mansoor Ahamed59e38b42012-11-06 13:06:32 +000020COBJS-$(CONFIG_NAND_OMAP_GPMC) += elm.o
Chandan Nath1c959692011-10-14 02:58:22 +000021
22SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
23OBJS := $(addprefix $(obj),$(COBJS) $(COBJS-y) $(SOBJS))
24
25all: $(obj).depend $(LIB)
26
27$(LIB): $(OBJS)
28 $(call cmd_link_o_target, $(OBJS))
29
30clean:
31 rm -f $(SOBJS) $(OBJS)
32
33distclean: clean
34 rm -f $(LIB) core *.bak .depend
35
36#########################################################################
37
38# defines $(obj).depend target
39include $(SRCTREE)/rules.mk
40
41sinclude $(obj).depend
42
43#########################################################################