blob: de9e44e1ef1c5635febf33f091362c5d5f792f65 [file] [log] [blame]
Lukasz Majewskid311c6e2012-08-06 14:41:07 +02001#
2# Copyright (C) 2012 Samsung Electronics
3# Lukasz Majewski <l.majewski@samsung.com>
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Lukasz Majewskid311c6e2012-08-06 14:41:07 +02006#
7
8include $(TOPDIR)/config.mk
9
10LIB = $(obj)libdfu.o
11
12COBJS-$(CONFIG_DFU_FUNCTION) += dfu.o
Lukasz Majewski34106b22012-08-06 14:41:08 +020013COBJS-$(CONFIG_DFU_MMC) += dfu_mmc.o
Pantelis Antonioucf14d0d2013-03-14 05:32:52 +000014COBJS-$(CONFIG_DFU_NAND) += dfu_nand.o
Afzal Mohammede3c687a2013-09-18 01:15:24 +053015COBJS-$(CONFIG_DFU_RAM) += dfu_ram.o
Lukasz Majewskid311c6e2012-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#########################################################################