2 # Copyright (C) 2007, Guennadi Liakhovetski <lg@denx.de>
4 # (C) Copyright 2011 Freescale Semiconductor, Inc.
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 in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # 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 := $(COBJS:.o=.c)
24 OBJS := $(addprefix $(obj),$(COBJS))
26 $(LIB): $(obj).depend $(OBJS)
27 $(call cmd_link_o_target, $(OBJS))
29 #########################################################################
31 # defines $(obj).depend target
32 include $(SRCTREE)/rules.mk
34 sinclude $(obj).depend
36 #########################################################################