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