blob: 0be10fe1d4cc0cc5d472bd5d8a8d5dc564d7aae6 [file] [log] [blame]
stroese771e05b2004-12-16 18:21:17 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Wolfgang Denk511d0c72006-10-09 00:42:01 +02004#
stroese771e05b2004-12-16 18:21:17 +00005# (C) Copyright 2001
6# Josh Huber <huber@mclx.com>, Mission Critical Linux, Inc.
7#
Wolfgang Denk1a459662013-07-08 09:37:19 +02008# SPDX-License-Identifier: GPL-2.0+
stroese771e05b2004-12-16 18:21:17 +00009#
10
11include $(TOPDIR)/config.mk
Marian Balakowiczf9328632006-09-01 19:49:50 +020012ifneq ($(OBJTREE),$(SRCTREE))
13$(shell mkdir -p $(obj)../../Marvell/common)
14endif
stroese771e05b2004-12-16 18:21:17 +000015
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010016LIB = $(obj)lib$(BOARD).o
stroese771e05b2004-12-16 18:21:17 +000017
18SOBJS = misc.o
19
Marian Balakowiczf9328632006-09-01 19:49:50 +020020COBJS = $(BOARD).o serial.o ../../Marvell/common/memory.o pci.o \
stroese771e05b2004-12-16 18:21:17 +000021 mv_eth.o mpsc.o i2c.o \
Stefan Roese79830d52006-02-08 15:54:15 +010022 sdram_init.o ide.o
stroese771e05b2004-12-16 18:21:17 +000023
Marian Balakowiczf9328632006-09-01 19:49:50 +020024SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
25OBJS := $(addprefix $(obj),$(COBJS))
26SOBJS := $(addprefix $(obj),$(SOBJS))
27
28$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010029 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
stroese771e05b2004-12-16 18:21:17 +000030
31#########################################################################
32
Marian Balakowiczf9328632006-09-01 19:49:50 +020033# defines $(obj).depend target
34include $(SRCTREE)/rules.mk
stroese771e05b2004-12-16 18:21:17 +000035
Marian Balakowiczf9328632006-09-01 19:49:50 +020036sinclude $(obj).depend
stroese771e05b2004-12-16 18:21:17 +000037
38#########################################################################