TsiChungLiew | 72f56ad | 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 | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
TsiChungLiew | 72f56ad | 2008-01-15 13:54:09 -0600 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 10 | LIB := $(obj)libdma.o |
TsiChungLiew | 72f56ad | 2008-01-15 13:54:09 -0600 | [diff] [blame] | 11 | |
Jean-Christophe PLAGNIOL-VILLARD | 88f57e0 | 2008-08-13 01:40:39 +0200 | [diff] [blame] | 12 | COBJS-$(CONFIG_FSLDMAFEC) += MCD_tasksInit.o MCD_dmaApi.o MCD_tasks.o |
Marek Vasut | 31650d6 | 2011-11-08 23:18:15 +0000 | [diff] [blame] | 13 | COBJS-$(CONFIG_APBH_DMA) += apbh_dma.o |
Peter Tyser | 017f11f | 2009-06-30 17:15:40 -0500 | [diff] [blame] | 14 | COBJS-$(CONFIG_FSL_DMA) += fsl_dma.o |
Simon Schwarz | 4c4bb19 | 2011-09-28 05:00:26 +0000 | [diff] [blame] | 15 | COBJS-$(CONFIG_OMAP3_DMA) += omap3_dma.o |
TsiChungLiew | 72f56ad | 2008-01-15 13:54:09 -0600 | [diff] [blame] | 16 | |
| 17 | COBJS := $(COBJS-y) |
Wolfgang Denk | 53677ef | 2008-05-20 16:00:29 +0200 | [diff] [blame] | 18 | SRCS := $(COBJS:.o=.c) |
| 19 | OBJS := $(addprefix $(obj),$(COBJS)) |
TsiChungLiew | 72f56ad | 2008-01-15 13:54:09 -0600 | [diff] [blame] | 20 | |
| 21 | all: $(LIB) |
| 22 | |
| 23 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 24 | $(call cmd_link_o_target, $(OBJS)) |
TsiChungLiew | 72f56ad | 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 | ######################################################################### |