2012-08-06 12:41:07 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2012 Samsung Electronics
|
|
|
|
# Lukasz Majewski <l.majewski@samsung.com>
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2012-08-06 12:41:07 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/config.mk
|
|
|
|
|
|
|
|
LIB = $(obj)libdfu.o
|
|
|
|
|
|
|
|
COBJS-$(CONFIG_DFU_FUNCTION) += dfu.o
|
2012-08-06 12:41:08 +00:00
|
|
|
COBJS-$(CONFIG_DFU_MMC) += dfu_mmc.o
|
2013-03-14 05:32:52 +00:00
|
|
|
COBJS-$(CONFIG_DFU_NAND) += dfu_nand.o
|
2013-09-17 19:45:24 +00:00
|
|
|
COBJS-$(CONFIG_DFU_RAM) += dfu_ram.o
|
2012-08-06 12:41:07 +00:00
|
|
|
|
|
|
|
SRCS := $(COBJS-y:.o=.c)
|
|
|
|
OBJS := $(addprefix $(obj),$(COBJS-y))
|
|
|
|
|
|
|
|
$(LIB): $(obj).depend $(OBJS)
|
|
|
|
$(call cmd_link_o_target, $(OBJS))
|
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
|
|
|
|
# defines $(obj).depend target
|
|
|
|
include $(SRCTREE)/rules.mk
|
|
|
|
|
|
|
|
sinclude $(obj).depend
|
|
|
|
|
|
|
|
#########################################################################
|