blob: cb7f856554c6901968cefb8d81da374c0cffe4fb [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
11LIB = $(obj)libddr.a
12
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)
31 $(AR) $(ARFLAGS) $@ $(OBJS)
32
33include $(SRCTREE)/rules.mk
34
35sinclude $(obj).depend