blob: 4a5a78558be976369e2d2968d250bf0afc1c5f1d [file] [log] [blame]
Kumar Gala58e5e9a2008-08-26 15:01:29 -05001#
2# Copyright 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
6# Version 2 as published by the Free Software Foundation.
7#
8
9include $(TOPDIR)/config.mk
10
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010011LIB = $(obj)libddr.o
Kumar Gala58e5e9a2008-08-26 15:01:29 -050012
13COBJS-$(CONFIG_FSL_DDR1) += main.o util.o ctrl_regs.o options.o \
14 lc_common_dimm_params.o
15COBJS-$(CONFIG_FSL_DDR1) += ddr1_dimm_params.o
16
17COBJS-$(CONFIG_FSL_DDR2) += main.o util.o ctrl_regs.o options.o \
18 lc_common_dimm_params.o
19COBJS-$(CONFIG_FSL_DDR2) += ddr2_dimm_params.o
20
Dave Liuc360cea2009-03-14 12:48:30 +080021COBJS-$(CONFIG_FSL_DDR3) += main.o util.o ctrl_regs.o options.o \
22 lc_common_dimm_params.o
23COBJS-$(CONFIG_FSL_DDR3) += ddr3_dimm_params.o
24
Kumar Gala58e5e9a2008-08-26 15:01:29 -050025SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
26OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
27
28all: $(obj).depend $(LIB)
29
30$(LIB): $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010031 $(call cmd_link_o_target, $(OBJS))
Kumar Gala58e5e9a2008-08-26 15:01:29 -050032
33include $(SRCTREE)/rules.mk
34
35sinclude $(obj).depend