blob: a5f2c54556e6cb186f17b716a9b55bb2a9c114b2 [file] [log] [blame]
wdenk3a473b22004-01-03 00:43:19 +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#
wdenk3a473b22004-01-03 00:43:19 +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+
wdenk3a473b22004-01-03 00:43:19 +00009#
10
11include $(TOPDIR)/config.mk
Marian Balakowiczf9328632006-09-01 19:49:50 +020012ifneq ($(OBJTREE),$(SRCTREE))
13$(shell mkdir -p $(obj)../common)
14endif
wdenk3a473b22004-01-03 00:43:19 +000015
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010016LIB = $(obj)lib$(BOARD).o
wdenk3a473b22004-01-03 00:43:19 +000017
18SOBJS = ../common/misc.o
19
Marian Balakowiczf9328632006-09-01 19:49:50 +020020COBJS = $(BOARD).o ../common/flash.o ../common/serial.o ../common/memory.o pci.o \
wdenk3a473b22004-01-03 00:43:19 +000021 mv_eth.o ../common/ns16550.o mpsc.o ../common/i2c.o \
22 sdram_init.o ../common/intel_flash.o
23
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))
wdenk3a473b22004-01-03 00:43:19 +000030
31#########################################################################
32
Marian Balakowiczf9328632006-09-01 19:49:50 +020033# defines $(obj).depend target
34include $(SRCTREE)/rules.mk
wdenk3a473b22004-01-03 00:43:19 +000035
Marian Balakowiczf9328632006-09-01 19:49:50 +020036sinclude $(obj).depend
wdenk3a473b22004-01-03 00:43:19 +000037
38#########################################################################