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