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 | 89a83bf | 2013-07-30 10:48:52 +0530 | [diff] [blame] | 13 | COBJS-$(CONFIG_AM33XX) += clock.o |
Chandan Nath | 1c95969 | 2011-10-14 02:58:22 +0000 | [diff] [blame] | 14 | COBJS += sys_info.o |
Ilya Yanok | 2ebbb86 | 2012-11-06 13:06:30 +0000 | [diff] [blame] | 15 | COBJS += mem.o |
Chandan Nath | 98b036e | 2011-10-14 02:58:24 +0000 | [diff] [blame] | 16 | COBJS += ddr.o |
| 17 | COBJS += emif4.o |
Chandan Nath | 7d74410 | 2011-10-14 02:58:26 +0000 | [diff] [blame] | 18 | COBJS += board.o |
Peter Korsgaard | 5d3f682 | 2012-10-18 01:21:11 +0000 | [diff] [blame] | 19 | COBJS += mux.o |
Mansoor Ahamed | 59e38b4 | 2012-11-06 13:06:32 +0000 | [diff] [blame] | 20 | COBJS-$(CONFIG_NAND_OMAP_GPMC) += elm.o |
Chandan Nath | 1c95969 | 2011-10-14 02:58:22 +0000 | [diff] [blame] | 21 | |
| 22 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 23 | OBJS := $(addprefix $(obj),$(COBJS) $(COBJS-y) $(SOBJS)) |
| 24 | |
| 25 | all: $(obj).depend $(LIB) |
| 26 | |
| 27 | $(LIB): $(OBJS) |
| 28 | $(call cmd_link_o_target, $(OBJS)) |
| 29 | |
| 30 | clean: |
| 31 | rm -f $(SOBJS) $(OBJS) |
| 32 | |
| 33 | distclean: clean |
| 34 | rm -f $(LIB) core *.bak .depend |
| 35 | |
| 36 | ######################################################################### |
| 37 | |
| 38 | # defines $(obj).depend target |
| 39 | include $(SRCTREE)/rules.mk |
| 40 | |
| 41 | sinclude $(obj).depend |
| 42 | |
| 43 | ######################################################################### |