Valentin Yakovenkov | 446707c | 2009-10-26 18:43:04 -0400 | [diff] [blame] | 1 | # |
| 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 Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 11 | # SPDX-License-Identifier: GPL-2.0+ |
Valentin Yakovenkov | 446707c | 2009-10-26 18:43:04 -0400 | [diff] [blame] | 12 | # |
| 13 | |
| 14 | include $(TOPDIR)/config.mk |
| 15 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 16 | LIB = $(obj)lib$(BOARD).o |
Valentin Yakovenkov | 446707c | 2009-10-26 18:43:04 -0400 | [diff] [blame] | 17 | |
| 18 | COBJS-y := $(BOARD).o |
| 19 | |
| 20 | SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c) |
| 21 | OBJS := $(addprefix $(obj),$(COBJS-y)) |
| 22 | SOBJS := $(addprefix $(obj),$(SOBJS-y)) |
| 23 | |
| 24 | $(LIB): $(obj).depend $(OBJS) $(SOBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 25 | $(call cmd_link_o_target, $(OBJS) $(SOBJS)) |
Valentin Yakovenkov | 446707c | 2009-10-26 18:43:04 -0400 | [diff] [blame] | 26 | |
Valentin Yakovenkov | 446707c | 2009-10-26 18:43:04 -0400 | [diff] [blame] | 27 | ######################################################################### |
| 28 | |
| 29 | # defines $(obj).depend target |
| 30 | include $(SRCTREE)/rules.mk |
| 31 | |
| 32 | sinclude $(obj).depend |
| 33 | |
| 34 | ######################################################################### |