2 # Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/
4 # SPDX-License-Identifier: GPL-2.0+
7 include $(TOPDIR)/config.mk
9 LIB = $(obj)lib$(SOC).o
11 COBJS-$(CONFIG_AM33XX) += clock_am33xx.o
12 COBJS-$(CONFIG_TI814X) += clock_ti814x.o
13 COBJS-$(CONFIG_AM33XX) += clock.o
20 COBJS-$(CONFIG_NAND_OMAP_GPMC) += elm.o
22 SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
23 OBJS := $(addprefix $(obj),$(COBJS) $(COBJS-y) $(SOBJS))
25 all: $(obj).depend $(LIB)
28 $(call cmd_link_o_target, $(OBJS))
31 rm -f $(SOBJS) $(OBJS)
34 rm -f $(LIB) core *.bak .depend
36 #########################################################################
38 # defines $(obj).depend target
39 include $(SRCTREE)/rules.mk
41 sinclude $(obj).depend
43 #########################################################################