blob: c891040dc99e3b1c6c590f1ffc2d79513e572f7f [file] [log] [blame]
wdenkdb01a2e2004-04-15 23:14:49 +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#
wdenkdb01a2e2004-04-15 23:14:49 +00005# Copyright 2004 Picture Elements, Inc.
6# Stephen Williams <steve@icarus.com>
7#
Wolfgang Denk1a459662013-07-08 09:37:19 +02008# SPDX-License-Identifier: GPL-2.0+
wdenkdb01a2e2004-04-15 23:14:49 +00009#
10
11include $(TOPDIR)/config.mk
12
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
wdenkdb01a2e2004-04-15 23:14:49 +000014
Marian Balakowiczf9328632006-09-01 19:49:50 +020015COBJS = $(BOARD).o sdram.o flash.o host_bridge.o
wdenkdb01a2e2004-04-15 23:14:49 +000016SOBJS = init.o
17
Marian Balakowiczf9328632006-09-01 19:49:50 +020018SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS))
20SOBJS := $(addprefix $(obj),$(SOBJS))
21
wdenkdb01a2e2004-04-15 23:14:49 +000022$(LIB): $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010023 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
wdenkdb01a2e2004-04-15 23:14:49 +000024
wdenkdb01a2e2004-04-15 23:14:49 +000025#########################################################################
26
Marian Balakowiczf9328632006-09-01 19:49:50 +020027# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
wdenkdb01a2e2004-04-15 23:14:49 +000029
Marian Balakowiczf9328632006-09-01 19:49:50 +020030sinclude $(obj).depend
wdenkdb01a2e2004-04-15 23:14:49 +000031
32#########################################################################