blob: f023abfee4f3979731d726bd983f67f7bb2bf57e [file] [log] [blame]
Dimitar Penev051a5f32011-11-25 16:05:54 -05001#
2# U-boot - Makefile
3#
4# Copyright (c) Switchfin Org. <dpn@switchfin.org>
5#
6# Copyright (c) 2005-2007 Analog Device Inc.
7#
8# (C) Copyright 2000-2006
9# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
10#
Wolfgang Denk1a459662013-07-08 09:37:19 +020011# SPDX-License-Identifier: GPL-2.0+
Dimitar Penev051a5f32011-11-25 16:05:54 -050012#
13
14include $(TOPDIR)/config.mk
15
16LIB = $(obj)lib$(BOARD).o
17
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)
25 $(call cmd_link_o_target, $(OBJS) $(SOBJS))
26
27#########################################################################
28
29# defines $(obj).depend target
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33
34#########################################################################