4 # Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License as
8 # published by the Free Software Foundation; either version 2 of
9 # the License, or (at your option) any later version.
11 # This program is distributed "as is" WITHOUT ANY WARRANTY of any
12 # kind, whether express or implied; without even the implied warranty
13 # of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
17 include $(TOPDIR)/config.mk
19 LIB = $(obj)lib$(BOARD).o
23 SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
24 OBJS := $(addprefix $(obj),$(COBJS))
25 SOBJS := $(addprefix $(obj),$(SOBJS))
27 $(LIB): $(obj).depend $(OBJS) $(SOBJS)
28 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
31 rm -f $(SOBJS) $(OBJS)
34 rm -f $(LIB) core *.bak $(obj).depend
36 #########################################################################
38 # defines $(obj).depend target
39 include $(SRCTREE)/rules.mk
41 sinclude $(obj).depend
43 #########################################################################