Igor Grinberg | 689be5f | 2013-09-16 21:49:58 +0300 | [diff] [blame^] | 1 | # |
| 2 | # (C) Copyright 2011 - 2013 CompuLab, Ltd. <www.compulab.co.il> |
| 3 | # |
| 4 | # Author: Igor Grinberg <grinberg@compulab.co.il> |
| 5 | # |
| 6 | # SPDX-License-Identifier: GPL-2.0+ |
| 7 | # |
| 8 | |
| 9 | include $(TOPDIR)/config.mk |
| 10 | |
| 11 | ifneq ($(OBJTREE),$(SRCTREE)) |
| 12 | $(shell mkdir -p $(obj)board/$(VENDOR)/common) |
| 13 | endif |
| 14 | |
| 15 | LIB = $(obj)lib$(VENDOR).o |
| 16 | |
| 17 | COBJS-$(CONFIG_DRIVER_OMAP34XX_I2C) += eeprom.o |
| 18 | |
| 19 | COBJS := $(COBJS-y) |
| 20 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 21 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 22 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 23 | |
| 24 | all: $(LIB) |
| 25 | |
| 26 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
| 27 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
| 28 | |
| 29 | ######################################################################### |
| 30 | # This is for $(obj).depend target |
| 31 | include $(SRCTREE)/rules.mk |
| 32 | |
| 33 | sinclude $(obj).depend |
| 34 | |
| 35 | ######################################################################### |