blob: 7bc224c4495a8b6fc14534aa22e2ad180c1cefca [file] [log] [blame]
John Schmoller9a0709d2010-10-22 00:20:34 -05001#
2# Copyright 2007-2008 Freescale Semiconductor, Inc.
3#
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.
8#
9
10include $(TOPDIR)/config.mk
11
Sebastien Carliera8d426f2010-11-05 15:48:07 +010012LIB = $(obj)lib$(BOARD).o
John Schmoller9a0709d2010-10-22 00:20:34 -050013
14COBJS-y += $(BOARD).o
15COBJS-y += ddr.o
16COBJS-y += law.o
17COBJS-y += tlb.o
18
19SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
20OBJS := $(addprefix $(obj),$(COBJS-y))
21SOBJS := $(addprefix $(obj),$(SOBJS-y))
22
23$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010024 $(call cmd_link_o_target, $(OBJS))
John Schmoller9a0709d2010-10-22 00:20:34 -050025
26clean:
27 rm -f $(OBJS) $(SOBJS)
28
29distclean: clean
30 rm -f $(LIB) core *.bak .depend
31
32#########################################################################
33
34# defines $(obj).depend target
35include $(SRCTREE)/rules.mk
36
37sinclude $(obj).depend
38
39#########################################################################