TsiChungLiew | cab977a | 2008-01-15 13:54:09 -0600 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2006 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
TsiChungLiew | cab977a | 2008-01-15 13:54:09 -0600 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 10 | LIB := $(obj)libdma.o |
TsiChungLiew | cab977a | 2008-01-15 13:54:09 -0600 | [diff] [blame] | 11 | |
Jean-Christophe PLAGNIOL-VILLARD | b5a9c38 | 2008-08-13 01:40:39 +0200 | [diff] [blame] | 12 | COBJS-$(CONFIG_FSLDMAFEC) += MCD_tasksInit.o MCD_dmaApi.o MCD_tasks.o |
Marek Vasut | f7c752c | 2011-11-08 23:18:15 +0000 | [diff] [blame] | 13 | COBJS-$(CONFIG_APBH_DMA) += apbh_dma.o |
Peter Tyser | ae7a7d4 | 2009-06-30 17:15:40 -0500 | [diff] [blame] | 14 | COBJS-$(CONFIG_FSL_DMA) += fsl_dma.o |
Simon Schwarz | d816de5 | 2011-09-28 05:00:26 +0000 | [diff] [blame] | 15 | COBJS-$(CONFIG_OMAP3_DMA) += omap3_dma.o |
TsiChungLiew | cab977a | 2008-01-15 13:54:09 -0600 | [diff] [blame] | 16 | |
| 17 | COBJS := $(COBJS-y) |
Wolfgang Denk | a1be476 | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 18 | SRCS := $(COBJS:.o=.c) |
| 19 | OBJS := $(addprefix $(obj),$(COBJS)) |
TsiChungLiew | cab977a | 2008-01-15 13:54:09 -0600 | [diff] [blame] | 20 | |
| 21 | all: $(LIB) |
| 22 | |
| 23 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 24 | $(call cmd_link_o_target, $(OBJS)) |
TsiChungLiew | cab977a | 2008-01-15 13:54:09 -0600 | [diff] [blame] | 25 | |
| 26 | ######################################################################### |
| 27 | |
| 28 | # defines $(obj).depend target |
| 29 | include $(SRCTREE)/rules.mk |
| 30 | |
| 31 | sinclude $(obj).depend |
| 32 | |
| 33 | ######################################################################### |