Kumar Gala | 58e5e9a | 2008-08-26 15:01:29 -0500 | [diff] [blame] | 1 | # |
| 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 | |
| 9 | include $(TOPDIR)/config.mk |
| 10 | |
| 11 | LIB = $(obj)libddr.a |
| 12 | |
| 13 | COBJS-$(CONFIG_FSL_DDR1) += main.o util.o ctrl_regs.o options.o \ |
| 14 | lc_common_dimm_params.o |
| 15 | COBJS-$(CONFIG_FSL_DDR1) += ddr1_dimm_params.o |
| 16 | |
| 17 | COBJS-$(CONFIG_FSL_DDR2) += main.o util.o ctrl_regs.o options.o \ |
| 18 | lc_common_dimm_params.o |
| 19 | COBJS-$(CONFIG_FSL_DDR2) += ddr2_dimm_params.o |
| 20 | |
Dave Liu | c360cea | 2009-03-14 12:48:30 +0800 | [diff] [blame^] | 21 | COBJS-$(CONFIG_FSL_DDR3) += main.o util.o ctrl_regs.o options.o \ |
| 22 | lc_common_dimm_params.o |
| 23 | COBJS-$(CONFIG_FSL_DDR3) += ddr3_dimm_params.o |
| 24 | |
Kumar Gala | 58e5e9a | 2008-08-26 15:01:29 -0500 | [diff] [blame] | 25 | SRCS := $(START:.o=.S) $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) |
| 26 | OBJS := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y)) |
| 27 | |
| 28 | all: $(obj).depend $(LIB) |
| 29 | |
| 30 | $(LIB): $(OBJS) |
| 31 | $(AR) $(ARFLAGS) $@ $(OBJS) |
| 32 | |
| 33 | include $(SRCTREE)/rules.mk |
| 34 | |
| 35 | sinclude $(obj).depend |