blob: a6132e22e7bbf39339553ce16f11ec629465d0d9 [file] [log] [blame]
TsiChungLiew72f56ad2008-01-15 13:54:09 -06001#
2# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
TsiChungLiew72f56ad2008-01-15 13:54:09 -06006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010010LIB := $(obj)libdma.o
TsiChungLiew72f56ad2008-01-15 13:54:09 -060011
Jean-Christophe PLAGNIOL-VILLARD88f57e02008-08-13 01:40:39 +020012COBJS-$(CONFIG_FSLDMAFEC) += MCD_tasksInit.o MCD_dmaApi.o MCD_tasks.o
Marek Vasut31650d62011-11-08 23:18:15 +000013COBJS-$(CONFIG_APBH_DMA) += apbh_dma.o
Peter Tyser017f11f2009-06-30 17:15:40 -050014COBJS-$(CONFIG_FSL_DMA) += fsl_dma.o
Simon Schwarz4c4bb192011-09-28 05:00:26 +000015COBJS-$(CONFIG_OMAP3_DMA) += omap3_dma.o
TsiChungLiew72f56ad2008-01-15 13:54:09 -060016
17COBJS := $(COBJS-y)
Wolfgang Denk53677ef2008-05-20 16:00:29 +020018SRCS := $(COBJS:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS))
TsiChungLiew72f56ad2008-01-15 13:54:09 -060020
21all: $(LIB)
22
23$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010024 $(call cmd_link_o_target, $(OBJS))
TsiChungLiew72f56ad2008-01-15 13:54:09 -060025
26#########################################################################
27
28# defines $(obj).depend target
29include $(SRCTREE)/rules.mk
30
31sinclude $(obj).depend
32
33#########################################################################