blob: 30d174030a710e181fc1bd49f0bb5264933717b2 [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
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010012LIB = $(obj)lib$(BOARD).o
Timur Tabic59e1b42010-06-14 15:28:24 -050013
14COBJS-y += $(BOARD).o
15COBJS-y += ddr.o
16COBJS-y += law.o
17COBJS-y += tlb.o
18
Timur Tabid5e01e42010-09-24 01:25:53 +020019COBJS-$(CONFIG_FSL_DIU_FB) += diu.o
20
Timur Tabic59e1b42010-06-14 15:28:24 -050021SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
22OBJS := $(addprefix $(obj),$(COBJS-y))
23SOBJS := $(addprefix $(obj),$(SOBJS))
24
25$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010026 $(call cmd_link_o_target, $(OBJS))
Timur Tabic59e1b42010-06-14 15:28:24 -050027
28clean:
29 rm -f $(OBJS) $(SOBJS)
30
31distclean: clean
32 rm -f $(LIB) core *.bak .depend
33
34#########################################################################
35
36# defines $(obj).depend target
37include $(SRCTREE)/rules.mk
38
39sinclude $(obj).depend
40
41#########################################################################