xref: /openbmc/u-boot/board/keymile/km_arm/Makefile (revision c0dcece7)
1#
2# (C) Copyright 2009
3# Marvell Semiconductor <www.marvell.com>
4# Prafulla Wadaskar <prafulla@marvell.com>
5#
6# SPDX-License-Identifier:	GPL-2.0+
7#
8
9include $(TOPDIR)/config.mk
10ifneq ($(OBJTREE),$(SRCTREE))
11$(shell mkdir -p $(obj)../common)
12endif
13
14LIB	= $(obj)lib$(BOARD).o
15
16COBJS	:= $(BOARD).o ../common/common.o ../common/ivm.o
17
18ifdef CONFIG_KM_FPGA_CONFIG
19COBJS	+= fpga_config.o
20endif
21
22SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
23OBJS	:= $(addprefix $(obj),$(COBJS))
24SOBJS	:= $(addprefix $(obj),$(SOBJS))
25
26$(LIB):	$(obj).depend $(OBJS) $(SOBJS)
27	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
28
29#########################################################################
30
31# defines $(obj).depend target
32include $(SRCTREE)/rules.mk
33
34sinclude $(obj).depend
35
36#########################################################################
37