blob: de9e44e1ef1c5635febf33f091362c5d5f792f65 [file] [log] [blame]
Lukasz Majewskif22b11c2012-08-06 14:41:07 +02001#
2# Copyright (C) 2012 Samsung Electronics
3# Lukasz Majewski <l.majewski@samsung.com>
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Lukasz Majewskif22b11c2012-08-06 14:41:07 +02006#
7
8include $(TOPDIR)/config.mk
9
10LIB = $(obj)libdfu.o
11
12COBJS-$(CONFIG_DFU_FUNCTION) += dfu.o
Lukasz Majewskicb383cd2012-08-06 14:41:08 +020013COBJS-$(CONFIG_DFU_MMC) += dfu_mmc.o
Pantelis Antoniouc6631762013-03-14 05:32:52 +000014COBJS-$(CONFIG_DFU_NAND) += dfu_nand.o
Afzal Mohammeda9479f02013-09-18 01:15:24 +053015COBJS-$(CONFIG_DFU_RAM) += dfu_ram.o
Lukasz Majewskif22b11c2012-08-06 14:41:07 +020016
17SRCS := $(COBJS-y:.o=.c)
18OBJS := $(addprefix $(obj),$(COBJS-y))
19
20$(LIB): $(obj).depend $(OBJS)
21 $(call cmd_link_o_target, $(OBJS))
22
23#########################################################################
24
25# defines $(obj).depend target
26include $(SRCTREE)/rules.mk
27
28sinclude $(obj).depend
29
30#########################################################################