blob: 8ede2d6055d95a34114bd0ac9e0421815da79133 [file] [log] [blame]
Timur Tabic59e1b42010-06-14 15:28:24 -05001#
2# Copyright 2010 Freescale Semiconductor, Inc.
3#
4# This program is free software; you can redistribute it and/or modify it
5# under the terms of the GNU General Public License as published by the Free
6# Software Foundation; either version 2 of the License, or (at your option)
7# any later version.
8#
9
10include $(TOPDIR)/config.mk
11
12LIB = $(obj)lib$(BOARD).a
13
14COBJS-y += $(BOARD).o
15COBJS-y += ddr.o
16COBJS-y += law.o
17COBJS-y += tlb.o
18
19SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
20OBJS := $(addprefix $(obj),$(COBJS-y))
21SOBJS := $(addprefix $(obj),$(SOBJS))
22
23$(LIB): $(obj).depend $(OBJS) $(SOBJS)
24 $(AR) $(ARFLAGS) $@ $(OBJS)
25
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#########################################################################