blob: 0f2018d734cb2f91a5ac586303064cff510ed008 [file] [log] [blame]
Heiko Schocher60301192010-02-22 16:43:02 +05301#
2# (C) Copyright 2009
3# Marvell Semiconductor <www.marvell.com>
4# Prafulla Wadaskar <prafulla@marvell.com>
5#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02006# SPDX-License-Identifier: GPL-2.0+
Heiko Schocher60301192010-02-22 16:43:02 +05307#
8
9include $(TOPDIR)/config.mk
Heiko Schochera7191fe2010-03-01 15:58:18 +010010ifneq ($(OBJTREE),$(SRCTREE))
11$(shell mkdir -p $(obj)../common)
12endif
Heiko Schocher60301192010-02-22 16:43:02 +053013
Sebastien Carliera8d426f2010-11-05 15:48:07 +010014LIB = $(obj)lib$(BOARD).o
Heiko Schocher60301192010-02-22 16:43:02 +053015
Holger Brunckbf20a882011-06-05 22:22:18 +000016COBJS := $(BOARD).o ../common/common.o ../common/ivm.o
Heiko Schocher60301192010-02-22 16:43:02 +053017
Valentin Longchamp6633fed2012-07-05 05:05:05 +000018ifdef CONFIG_KM_FPGA_CONFIG
19COBJS += fpga_config.o
20endif
21
Heiko Schocher60301192010-02-22 16:43:02 +053022SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
23OBJS := $(addprefix $(obj),$(COBJS))
24SOBJS := $(addprefix $(obj),$(SOBJS))
25
26$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010027 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Heiko Schocher60301192010-02-22 16:43:02 +053028
Heiko Schocher60301192010-02-22 16:43:02 +053029#########################################################################
30
31# defines $(obj).depend target
32include $(SRCTREE)/rules.mk
33
34sinclude $(obj).depend
35
36#########################################################################