blob: cbe2987ea2d899b1c8daefc15145a07c77832cdb [file] [log] [blame]
wdenk8bde7f72003-06-27 21:31:46 +00001
wdenke85390d2002-04-01 14:29:03 +00002#
Marian Balakowiczf9328632006-09-01 19:49:50 +02003# (C) Copyright 2000-2006
wdenke85390d2002-04-01 14:29:03 +00004# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5#
Wolfgang Denk1a459662013-07-08 09:37:19 +02006# SPDX-License-Identifier: GPL-2.0+
wdenke85390d2002-04-01 14:29:03 +00007#
8
9include $(TOPDIR)/config.mk
Marian Balakowiczf9328632006-09-01 19:49:50 +020010ifneq ($(OBJTREE),$(SRCTREE))
11$(shell mkdir -p $(obj)../common)
12endif
wdenke85390d2002-04-01 14:29:03 +000013
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010014LIB = $(obj)lib$(BOARD).o
wdenke85390d2002-04-01 14:29:03 +000015
Marian Balakowiczf9328632006-09-01 19:49:50 +020016COBJS = $(BOARD).o flash.o ../common/misc.o ../common/pci.o
17
18SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS))
20SOBJS := $(addprefix $(obj),$(SOBJS))
wdenke85390d2002-04-01 14:29:03 +000021
22$(LIB): $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010023 $(call cmd_link_o_target, $(OBJS))
wdenke85390d2002-04-01 14:29:03 +000024
wdenke85390d2002-04-01 14:29:03 +000025#########################################################################
26
Marian Balakowiczf9328632006-09-01 19:49:50 +020027# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
wdenke85390d2002-04-01 14:29:03 +000029
Marian Balakowiczf9328632006-09-01 19:49:50 +020030sinclude $(obj).depend
wdenke85390d2002-04-01 14:29:03 +000031
32#########################################################################