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