]> git.ipfire.org Git - thirdparty/u-boot.git/blame - board/sandburst/metrobox/Makefile
Add GPL-2.0+ SPDX-License-Identifier to source files
[thirdparty/u-boot.git] / board / sandburst / metrobox / Makefile
CommitLineData
b79316f2 1#
f9328639
MB
2# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
b79316f2
SR
5# (C) Copyright 2005
6# Travis B. Sawyer, Sandburst Corporation, tsawyer@sandburst.com
7#
1a459660 8# SPDX-License-Identifier: GPL-2.0+
b79316f2
SR
9#
10
11include $(TOPDIR)/config.mk
f9328639
MB
12ifneq ($(OBJTREE),$(SRCTREE))
13$(shell mkdir -p $(obj)../common)
14endif
b79316f2
SR
15
16# TBS: add for debugging purposes
17BUILDUSER := $(shell whoami)
18FORCEBUILD := $(shell rm -f $(LIB) $(BOARD).o)
19
20CFLAGS += -DBUILDUSER='"$(BUILDUSER)"'
21# TBS: end debugging
22
23
6d8962e8 24LIB = $(obj)lib$(BOARD).o
b79316f2 25
f9328639 26COBJS = $(BOARD).o ../common/flash.o ../common/ppc440gx_i2c.o \
b79316f2
SR
27 ../common/sb_common.o
28SOBJS = init.o
29
f9328639
MB
30SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
31OBJS := $(addprefix $(obj),$(COBJS))
32SOBJS := $(addprefix $(obj),$(SOBJS))
b79316f2
SR
33
34$(LIB): $(OBJS) $(SOBJS)
6d8962e8 35 $(call cmd_link_o_target, $(OBJS))
b79316f2 36
b79316f2
SR
37#########################################################################
38
f9328639
MB
39# defines $(obj).depend target
40include $(SRCTREE)/rules.mk
b79316f2 41
f9328639 42sinclude $(obj).depend
b79316f2
SR
43
44#########################################################################