Chandan Nath | 1c95969 | 2011-10-14 02:58:22 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/ |
| 3 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Chandan Nath | 1c95969 | 2011-10-14 02:58:22 +0000 | [diff] [blame] | 5 | # |
| 6 | |
| 7 | include $(TOPDIR)/config.mk |
| 8 | |
| 9 | LIB = $(obj)lib$(SOC).o |
| 10 | |
Matt Porter | 57da666 | 2013-03-15 10:07:04 +0000 | [diff] [blame] | 11 | COBJS-$(CONFIG_AM33XX) += clock_am33xx.o |
| 12 | COBJS-$(CONFIG_TI814X) += clock_ti814x.o |
Lokesh Vutla | 85b5936 | 2013-07-30 11:36:29 +0530 | [diff] [blame] | 13 | COBJS-$(CONFIG_AM43XX) += clock_am43xx.o |
| 14 | |
| 15 | ifneq ($(CONFIG_AM43XX)$(CONFIG_AM33XX),) |
| 16 | COBJS += clock.o |
| 17 | endif |
| 18 | |
TENART Antoine | 35c7e52 | 2013-07-02 12:05:59 +0200 | [diff] [blame] | 19 | COBJS-$(CONFIG_TI816X) += clock_ti816x.o |
Chandan Nath | 1c95969 | 2011-10-14 02:58:22 +0000 | [diff] [blame] | 20 | COBJS += sys_info.o |
Ilya Yanok | 2ebbb86 | 2012-11-06 13:06:30 +0000 | [diff] [blame] | 21 | COBJS += mem.o |
Chandan Nath | 98b036e | 2011-10-14 02:58:24 +0000 | [diff] [blame] | 22 | COBJS += ddr.o |
| 23 | COBJS += emif4.o |
Chandan Nath | 7d74410 | 2011-10-14 02:58:26 +0000 | [diff] [blame] | 24 | COBJS += board.o |
Peter Korsgaard | 5d3f682 | 2012-10-18 01:21:11 +0000 | [diff] [blame] | 25 | COBJS += mux.o |
Mansoor Ahamed | 59e38b4 | 2012-11-06 13:06:32 +0000 | [diff] [blame] | 26 | COBJS-$(CONFIG_NAND_OMAP_GPMC) += elm.o |
Chandan Nath | 1c95969 | 2011-10-14 02:58:22 +0000 | [diff] [blame] | 27 | |
| 28 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 29 | OBJS := $(addprefix $(obj),$(COBJS) $(COBJS-y) $(SOBJS)) |
| 30 | |
| 31 | all: $(obj).depend $(LIB) |
| 32 | |
| 33 | $(LIB): $(OBJS) |
| 34 | $(call cmd_link_o_target, $(OBJS)) |
| 35 | |
| 36 | clean: |
| 37 | rm -f $(SOBJS) $(OBJS) |
| 38 | |
| 39 | distclean: clean |
| 40 | rm -f $(LIB) core *.bak .depend |
| 41 | |
| 42 | ######################################################################### |
| 43 | |
| 44 | # defines $(obj).depend target |
| 45 | include $(SRCTREE)/rules.mk |
| 46 | |
| 47 | sinclude $(obj).depend |
| 48 | |
| 49 | ######################################################################### |