blob: 6868e6886a0dc00252c62c21d0706633494fb2dd [file] [log] [blame]
wdenk3cae4c92002-07-07 16:05:51 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2000-2006
wdenk3cae4c92002-07-07 16:05:51 +00003# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
wdenk3cae4c92002-07-07 16:05:51 +00006#
7
8include $(TOPDIR)/config.mk
Marian Balakowiczf9328632006-09-01 19:49:50 +02009ifneq ($(OBJTREE),$(SRCTREE))
10$(shell mkdir -p $(obj)../common)
11endif
wdenk3cae4c92002-07-07 16:05:51 +000012
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010013LIB = $(obj)lib$(BOARD).o
wdenk3cae4c92002-07-07 16:05:51 +000014
Marian Balakowiczf9328632006-09-01 19:49:50 +020015COBJS = $(BOARD).o flash.o ../common/misc.o ../common/auto_update.o
Matthias Fuchs3ba605d2009-01-02 12:18:49 +010016COBJS += ../common/cmd_loadpci.o
Marian Balakowiczf9328632006-09-01 19:49:50 +020017
18SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
19OBJS := $(addprefix $(obj),$(COBJS))
20SOBJS := $(addprefix $(obj),$(SOBJS))
wdenk3cae4c92002-07-07 16:05:51 +000021
22$(LIB): $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010023 $(call cmd_link_o_target, $(OBJS))
wdenk3cae4c92002-07-07 16:05:51 +000024
wdenk3cae4c92002-07-07 16:05:51 +000025#########################################################################
26
Marian Balakowiczf9328632006-09-01 19:49:50 +020027# defines $(obj).depend target
28include $(SRCTREE)/rules.mk
wdenk3cae4c92002-07-07 16:05:51 +000029
Marian Balakowiczf9328632006-09-01 19:49:50 +020030sinclude $(obj).depend
wdenk3cae4c92002-07-07 16:05:51 +000031
32#########################################################################