2 # Copyright 2007-2008 Freescale Semiconductor, Inc.
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License as
6 # published by the Free Software Foundation; either version 2 of
7 # the License, or (at your option) any later version.
10 include $(TOPDIR)/config.mk
12 LIB = $(obj)lib$(BOARD).a
19 SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
20 OBJS := $(addprefix $(obj),$(COBJS-y))
21 SOBJS := $(addprefix $(obj),$(SOBJS-y))
23 $(LIB): $(obj).depend $(OBJS) $(SOBJS)
24 $(AR) $(ARFLAGS) $@ $(OBJS)
27 rm -f $(OBJS) $(SOBJS)
30 rm -f $(LIB) core *.bak .depend
32 #########################################################################
34 # defines $(obj).depend target
35 include $(SRCTREE)/rules.mk
37 sinclude $(obj).depend
39 #########################################################################