blob: a6edac0c6ca94e0b5ba309c56afa6e8792029bbf [file] [log] [blame]
Stefan Roese7644f162005-09-22 09:16:57 +02001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
Stefan Roese7644f162005-09-22 09:16:57 +02003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Stefan Roese7644f162005-09-22 09:16:57 +02006#
7
8include $(TOPDIR)/config.mk
Marian Balakowiczf9328632006-09-01 19:49:50 +02009ifneq ($(OBJTREE),$(SRCTREE))
10$(shell mkdir -p $(obj)../common)
11endif
Stefan Roese7644f162005-09-22 09:16:57 +020012
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
Stefan Roese7644f162005-09-22 09:16:57 +020014
Marian Balakowiczf9328632006-09-01 19:49:50 +020015COBJS = $(BOARD).o flash.o ../common/misc.o ../common/cmd_loadpci.o
16
17SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
18OBJS := $(addprefix $(obj),$(COBJS))
19SOBJS := $(addprefix $(obj),$(SOBJS))
Stefan Roese7644f162005-09-22 09:16:57 +020020
21$(LIB): $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010022 $(call cmd_link_o_target, $(OBJS))
Stefan Roese7644f162005-09-22 09:16:57 +020023
Stefan Roese7644f162005-09-22 09:16:57 +020024#########################################################################
25
Marian Balakowiczf9328632006-09-01 19:49:50 +020026# defines $(obj).depend target
27include $(SRCTREE)/rules.mk
Stefan Roese7644f162005-09-22 09:16:57 +020028
Marian Balakowiczf9328632006-09-01 19:49:50 +020029sinclude $(obj).depend
Stefan Roese7644f162005-09-22 09:16:57 +020030
31#########################################################################