Lukasz Majewski | d311c6e | 2012-08-06 14:41:07 +0200 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2012 Samsung Electronics |
| 3 | # Lukasz Majewski <l.majewski@samsung.com> |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Lukasz Majewski | d311c6e | 2012-08-06 14:41:07 +0200 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
| 10 | LIB = $(obj)libdfu.o |
| 11 | |
| 12 | COBJS-$(CONFIG_DFU_FUNCTION) += dfu.o |
Lukasz Majewski | 34106b2 | 2012-08-06 14:41:08 +0200 | [diff] [blame] | 13 | COBJS-$(CONFIG_DFU_MMC) += dfu_mmc.o |
Pantelis Antoniou | cf14d0d | 2013-03-14 05:32:52 +0000 | [diff] [blame] | 14 | COBJS-$(CONFIG_DFU_NAND) += dfu_nand.o |
Afzal Mohammed | e3c687a | 2013-09-18 01:15:24 +0530 | [diff] [blame] | 15 | COBJS-$(CONFIG_DFU_RAM) += dfu_ram.o |
Lukasz Majewski | d311c6e | 2012-08-06 14:41:07 +0200 | [diff] [blame] | 16 | |
| 17 | SRCS := $(COBJS-y:.o=.c) |
| 18 | OBJS := $(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 |
| 26 | include $(SRCTREE)/rules.mk |
| 27 | |
| 28 | sinclude $(obj).depend |
| 29 | |
| 30 | ######################################################################### |