blob: b399c8f46b076d5ba3079f56010e31ef32121474 [file] [log] [blame]
Igor Grinberg689be5f2013-09-16 21:49:58 +03001#
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
9include $(TOPDIR)/config.mk
10
11ifneq ($(OBJTREE),$(SRCTREE))
12$(shell mkdir -p $(obj)board/$(VENDOR)/common)
13endif
14
15LIB = $(obj)lib$(VENDOR).o
16
17COBJS-$(CONFIG_DRIVER_OMAP34XX_I2C) += eeprom.o
Igor Grinberge1e55c12013-09-16 21:49:59 +030018COBJS-$(CONFIG_LCD) += omap3_display.o
Igor Grinberg689be5f2013-09-16 21:49:58 +030019
20COBJS := $(COBJS-y)
21SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
22OBJS := $(addprefix $(obj),$(COBJS))
23SOBJS := $(addprefix $(obj),$(SOBJS))
24
25all: $(LIB)
26
27$(LIB): $(obj).depend $(OBJS) $(SOBJS)
28 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
29
30#########################################################################
31# This is for $(obj).depend target
32include $(SRCTREE)/rules.mk
33
34sinclude $(obj).depend
35
36#########################################################################