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