tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / drivers / mmc / Makefile
1 #\r
2 # (C) Copyright 2006\r
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.\r
4 #\r
5 # See file CREDITS for list of people who contributed to this\r
6 # project.\r
7 #\r
8 # This program is free software; you can redistribute it and/or\r
9 # modify it under the terms of the GNU General Public License as\r
10 # published by the Free Software Foundation; either version 2 of\r
11 # the License, or (at your option) any later version.\r
12 #\r
13 # This program is distributed in the hope that it will be useful,\r
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of\r
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
16 # GNU General Public License for more details.\r
17 #\r
18 # You should have received a copy of the GNU General Public License\r
19 # along with this program; if not, write to the Free Software\r
20 # Foundation, Inc., 59 Temple Place, Suite 330, Boston,\r
21 # MA 02111-1307 USA\r
22 #\r
23 \r
24 include $(TOPDIR)/config.mk\r
25 \r
26 LIB     := $(obj)libmmc.o\r
27 \r
28 COBJS-$(CONFIG_ATMEL_MCI) += atmel_mci.o\r
29 COBJS-$(CONFIG_BFIN_SDH) += bfin_sdh.o\r
30 COBJS-$(CONFIG_FSL_ESDHC) += fsl_esdhc.o\r
31 COBJS-$(CONFIG_GENERIC_MMC) += mmc.o\r
32 COBJS-$(CONFIG_GENERIC_ATMEL_MCI) += gen_atmel_mci.o\r
33 COBJS-$(CONFIG_MXC_MMC) += mxcmmc.o\r
34 COBJS-$(CONFIG_OMAP3_MMC) += omap3_mmc.o\r
35 COBJS-$(CONFIG_OMAP_HSMMC) += omap_hsmmc.o\r
36 COBJS-$(CONFIG_PXA_MMC) += pxa_mmc.o\r
37 COBJS-$(CONFIG_S5P_MMC) += s5p_mmc.o\r
38 COBJS-$(CONFIG_MV_SDHCI) += mv_sdhci.o\r
39 COBJS-$(CONFIG_SDHCI) += sdhci.o\r
40 COBJS-$(CONFIG_SP8810_MMC) += sp8810_mmc.o\r
41 COBJS-$(CONFIG_TIGER_MMC) += sp8810_mmc.o\r
42 COBJS-$(CONFIG_SDIO_HOST) += sdhost_phy.o\r
43 \r
44 COBJS-$(CONFIG_GENERIC_MMC) += sdio_card_pal.o sdhost_phy.o card_sdio.o\r
45 \r
46 CFLAGS += -I $(TOPDIR)/arch/arm/include/asm/arch-sc8810\r
47 HOSTCFLAGS += -I $(TOPDIR)/arch/arm/include/asm/arch-sc8810\r
48 AFLAGS  += -I $(TOPDIR)/include/asm/arch\r
49 CFLAGS  += -I $(TOPDIR)/include/asm/arch\r
50 \r
51 COBJS   := $(COBJS-y)\r
52 SRCS    := $(COBJS:.o=.c)\r
53 OBJS    := $(addprefix $(obj),$(COBJS))\r
54 \r
55 all:    $(LIB)\r
56 \r
57 $(LIB): $(obj).depend $(OBJS)\r
58         $(call cmd_link_o_target, $(OBJS))\r
59 \r
60 #########################################################################\r
61 \r
62 # defines $(obj).depend target\r
63 include $(SRCTREE)/rules.mk\r
64 \r
65 sinclude $(obj).depend\r
66 \r
67 #########################################################################\r