1*fbf2728dSLokesh Vutla# 2*fbf2728dSLokesh Vutla# Makefile 3*fbf2728dSLokesh Vutla# 4*fbf2728dSLokesh Vutla# Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/ 5*fbf2728dSLokesh Vutla# 6*fbf2728dSLokesh Vutla# SPDX-License-Identifier: GPL-2.0+ 7*fbf2728dSLokesh Vutla# 8*fbf2728dSLokesh Vutla 9*fbf2728dSLokesh Vutlainclude $(TOPDIR)/config.mk 10*fbf2728dSLokesh Vutla 11*fbf2728dSLokesh VutlaLIB = $(obj)lib$(BOARD).o 12*fbf2728dSLokesh Vutla 13*fbf2728dSLokesh Vutlaifdef CONFIG_SPL_BUILD 14*fbf2728dSLokesh VutlaCOBJS := mux.o 15*fbf2728dSLokesh Vutlaendif 16*fbf2728dSLokesh Vutla 17*fbf2728dSLokesh VutlaCOBJS += board.o 18*fbf2728dSLokesh VutlaSRCS := $(COBJS:.o=.c) 19*fbf2728dSLokesh VutlaOBJS := $(addprefix $(obj),$(COBJS)) 20*fbf2728dSLokesh VutlaSOBJS := $(addprefix $(obj),$(SOBJS)) 21*fbf2728dSLokesh Vutla 22*fbf2728dSLokesh Vutla$(LIB): $(obj).depend $(OBJS) $(SOBJS) 23*fbf2728dSLokesh Vutla $(call cmd_link_o_target, $(OBJS) $(SOBJS)) 24*fbf2728dSLokesh Vutla 25*fbf2728dSLokesh Vutlaclean: 26*fbf2728dSLokesh Vutla rm -f $(SOBJS) $(OBJS) 27*fbf2728dSLokesh Vutla 28*fbf2728dSLokesh Vutladistclean: clean 29*fbf2728dSLokesh Vutla rm -f $(LIB) core *.bak $(obj).depend 30*fbf2728dSLokesh Vutla 31*fbf2728dSLokesh Vutla######################################################################### 32*fbf2728dSLokesh Vutla 33*fbf2728dSLokesh Vutla# defines $(obj).depend target 34*fbf2728dSLokesh Vutlainclude $(SRCTREE)/rules.mk 35*fbf2728dSLokesh Vutla 36*fbf2728dSLokesh Vutlasinclude $(obj).depend 37*fbf2728dSLokesh Vutla 38*fbf2728dSLokesh Vutla######################################################################### 39