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