1*1c1b7c37SLars Poeschel# 2*1c1b7c37SLars Poeschel# Makefile 3*1c1b7c37SLars Poeschel# 4*1c1b7c37SLars Poeschel# Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ 5*1c1b7c37SLars Poeschel# 6*1c1b7c37SLars Poeschel# This program is free software; you can redistribute it and/or 7*1c1b7c37SLars Poeschel# modify it under the terms of the GNU General Public License as 8*1c1b7c37SLars Poeschel# published by the Free Software Foundation; either version 2 of 9*1c1b7c37SLars Poeschel# the License, or (at your option) any later version. 10*1c1b7c37SLars Poeschel# 11*1c1b7c37SLars Poeschel# This program is distributed "as is" WITHOUT ANY WARRANTY of any 12*1c1b7c37SLars Poeschel# kind, whether express or implied; without even the implied warranty 13*1c1b7c37SLars Poeschel# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14*1c1b7c37SLars Poeschel# GNU General Public License for more details. 15*1c1b7c37SLars Poeschel# 16*1c1b7c37SLars Poeschel 17*1c1b7c37SLars Poeschelinclude $(TOPDIR)/config.mk 18*1c1b7c37SLars Poeschel 19*1c1b7c37SLars PoeschelLIB = $(obj)lib$(BOARD).o 20*1c1b7c37SLars Poeschel 21*1c1b7c37SLars Poeschelifdef CONFIG_SPL_BUILD 22*1c1b7c37SLars PoeschelCOBJS := mux.o 23*1c1b7c37SLars Poeschelendif 24*1c1b7c37SLars Poeschel 25*1c1b7c37SLars PoeschelCOBJS += board.o 26*1c1b7c37SLars PoeschelSRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) 27*1c1b7c37SLars PoeschelOBJS := $(addprefix $(obj),$(COBJS)) 28*1c1b7c37SLars PoeschelSOBJS := $(addprefix $(obj),$(SOBJS)) 29*1c1b7c37SLars Poeschel 30*1c1b7c37SLars Poeschel$(LIB): $(obj).depend $(OBJS) $(SOBJS) 31*1c1b7c37SLars Poeschel $(call cmd_link_o_target, $(OBJS) $(SOBJS)) 32*1c1b7c37SLars Poeschel 33*1c1b7c37SLars Poeschelclean: 34*1c1b7c37SLars Poeschel rm -f $(SOBJS) $(OBJS) 35*1c1b7c37SLars Poeschel 36*1c1b7c37SLars Poescheldistclean: clean 37*1c1b7c37SLars Poeschel rm -f $(LIB) core *.bak $(obj).depend 38*1c1b7c37SLars Poeschel 39*1c1b7c37SLars Poeschel######################################################################### 40*1c1b7c37SLars Poeschel 41*1c1b7c37SLars Poeschel# defines $(obj).depend target 42*1c1b7c37SLars Poeschelinclude $(SRCTREE)/rules.mk 43*1c1b7c37SLars Poeschel 44*1c1b7c37SLars Poeschelsinclude $(obj).depend 45*1c1b7c37SLars Poeschel 46*1c1b7c37SLars Poeschel######################################################################### 47