blob: 63ee945d2a9dd82c061b1d5b8d5af8850d5e3605 [file] [log] [blame]
Stefan Roese1eac2a72006-11-29 15:42:37 +01001#
2# (C) Copyright 2002-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Stefan Roese1eac2a72006-11-29 15:42:37 +01006#
7
8include $(TOPDIR)/config.mk
9ifneq ($(OBJTREE),$(SRCTREE))
10$(shell mkdir -p $(obj)../../Marvell/common)
11endif
12
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
Stefan Roese1eac2a72006-11-29 15:42:37 +010014
15SOBJS = misc.o
16COBJS = $(BOARD).o mpsc.o mv_eth.o pci.o sdram_init.o serial.o \
17 ../../Marvell/common/i2c.o ../../Marvell/common/memory.o
18
19SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
20OBJS := $(addprefix $(obj),$(COBJS))
21SOBJS := $(addprefix $(obj),$(SOBJS))
22
23$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010024 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Stefan Roese1eac2a72006-11-29 15:42:37 +010025
Stefan Roese1eac2a72006-11-29 15:42:37 +010026#########################################################################
27
28# defines $(obj).depend target
29include $(SRCTREE)/rules.mk
30
31sinclude $(obj).depend
32
33#########################################################################