blob: b7f8d8cf5717d1af3431f8c2af4d03062cd0837b [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
21SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
22OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
23
24all: $(obj).depend $(LIB)
25
26$(LIB): $(OBJS)
27 $(AR) $(ARFLAGS) $@ $(OBJS)
28
29include $(SRCTREE)/rules.mk
30
31sinclude $(obj).depend