Heiko Schocher | 6030119 | 2010-02-22 16:43:02 +0530 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2009 |
| 3 | # Marvell Semiconductor <www.marvell.com> |
| 4 | # Prafulla Wadaskar <prafulla@marvell.com> |
| 5 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 6 | # SPDX-License-Identifier: GPL-2.0+ |
Heiko Schocher | 6030119 | 2010-02-22 16:43:02 +0530 | [diff] [blame] | 7 | # |
| 8 | |
| 9 | include $(TOPDIR)/config.mk |
Heiko Schocher | a7191fe | 2010-03-01 15:58:18 +0100 | [diff] [blame] | 10 | ifneq ($(OBJTREE),$(SRCTREE)) |
| 11 | $(shell mkdir -p $(obj)../common) |
| 12 | endif |
Heiko Schocher | 6030119 | 2010-02-22 16:43:02 +0530 | [diff] [blame] | 13 | |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 14 | LIB = $(obj)lib$(BOARD).o |
Heiko Schocher | 6030119 | 2010-02-22 16:43:02 +0530 | [diff] [blame] | 15 | |
Holger Brunck | bf20a88 | 2011-06-05 22:22:18 +0000 | [diff] [blame] | 16 | COBJS := $(BOARD).o ../common/common.o ../common/ivm.o |
Heiko Schocher | 6030119 | 2010-02-22 16:43:02 +0530 | [diff] [blame] | 17 | |
Valentin Longchamp | 6633fed | 2012-07-05 05:05:05 +0000 | [diff] [blame] | 18 | ifdef CONFIG_KM_FPGA_CONFIG |
| 19 | COBJS += fpga_config.o |
| 20 | endif |
| 21 | |
Heiko Schocher | 6030119 | 2010-02-22 16:43:02 +0530 | [diff] [blame] | 22 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 23 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 24 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 25 | |
| 26 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 27 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
Heiko Schocher | 6030119 | 2010-02-22 16:43:02 +0530 | [diff] [blame] | 28 | |
Heiko Schocher | 6030119 | 2010-02-22 16:43:02 +0530 | [diff] [blame] | 29 | ######################################################################### |
| 30 | |
| 31 | # defines $(obj).depend target |
| 32 | include $(SRCTREE)/rules.mk |
| 33 | |
| 34 | sinclude $(obj).depend |
| 35 | |
| 36 | ######################################################################### |