blob: 8895cd010ab2f281792defeb028fc54a17c40610 [file] [log] [blame]
Anton Vorontsovb6678de2008-01-09 20:57:47 +03001#
2# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Anton Vorontsovb6678de2008-01-09 20:57:47 +03006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB = $(obj)lib$(BOARD).o
Anton Vorontsovb6678de2008-01-09 20:57:47 +030011
Anton Vorontsov5cea1102008-03-24 20:46:51 +030012COBJS-y += $(BOARD).o
13COBJS-$(CONFIG_CMD_NAND) += nand.o
Anton Vorontsovb6678de2008-01-09 20:57:47 +030014
Anton Vorontsov5cea1102008-03-24 20:46:51 +030015COBJS := $(COBJS-y)
Anton Vorontsovb6678de2008-01-09 20:57:47 +030016SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
17OBJS := $(addprefix $(obj),$(COBJS))
18SOBJS := $(addprefix $(obj),$(SOBJS))
19
20$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010021 $(call cmd_link_o_target, $(OBJS))
Anton Vorontsovb6678de2008-01-09 20:57:47 +030022
Anton Vorontsovb6678de2008-01-09 20:57:47 +030023#########################################################################
24
25# defines $(obj).depend target
26include $(SRCTREE)/rules.mk
27
28sinclude $(obj).depend
29
30#########################################################################