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