Piotr Wilczek | 0475044 | 2013-09-24 16:31:22 +0200 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (C) 2013 Samsung Electronics |
| 3 | # Piotr Wilczek <p.wilczek@samsung.com> |
| 4 | # |
| 5 | # SPDX-License-Identifier: GPL-2.0+ |
| 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
| 10 | LIB := $(obj)libmfd.o |
| 11 | |
| 12 | COBJS-$(CONFIG_POWER_PMIC_MAX77693) += pmic_max77693.o |
| 13 | COBJS-$(CONFIG_POWER_MUIC_MAX77693) += muic_max77693.o |
| 14 | COBJS-$(CONFIG_POWER_FG_MAX77693) += fg_max77693.o |
| 15 | |
| 16 | COBJS := $(COBJS-y) |
| 17 | SRCS := $(COBJS:.o=.c) |
| 18 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 19 | |
| 20 | all: $(LIB) |
| 21 | |
| 22 | $(LIB): $(obj).depend $(OBJS) |
| 23 | $(call cmd_link_o_target, $(OBJS)) |
| 24 | |
| 25 | |
| 26 | ######################################################################### |
| 27 | |
| 28 | # defines $(obj).depend target |
| 29 | include $(SRCTREE)/rules.mk |
| 30 | |
| 31 | sinclude $(obj).depend |
| 32 | |
| 33 | ######################################################################## |