blob: 988cdd88c1755581d9b97f70f1baee800e82628d [file] [log] [blame]
Valentin Yakovenkov446707c2009-10-26 18:43:04 -04001#
2# U-boot - Makefile
3#
4# Copyright (c) 2005-2007 Analog Device Inc.
5#
6# (C) Copyright 2000-2006
7# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8#
9# (C) Copyright 2009 CJSC "NII STT", Russia, Smolensk
10#
Wolfgang Denk1a459662013-07-08 09:37:19 +020011# SPDX-License-Identifier: GPL-2.0+
Valentin Yakovenkov446707c2009-10-26 18:43:04 -040012#
13
14include $(TOPDIR)/config.mk
15
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010016LIB = $(obj)lib$(BOARD).o
Valentin Yakovenkov446707c2009-10-26 18:43:04 -040017
18COBJS-y := $(BOARD).o
19
20SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
21OBJS := $(addprefix $(obj),$(COBJS-y))
22SOBJS := $(addprefix $(obj),$(SOBJS-y))
23
24$(LIB): $(obj).depend $(OBJS) $(SOBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010025 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
Valentin Yakovenkov446707c2009-10-26 18:43:04 -040026
Valentin Yakovenkov446707c2009-10-26 18:43:04 -040027#########################################################################
28
29# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33
34#########################################################################