blob: af758f947ef55c7dd7a9c660d7faeab650f099a6 [file] [log] [blame]
Stefan Roese5ff4c3f2005-08-15 12:31:23 +02001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Stefan Roese5ff4c3f2005-08-15 12:31:23 +02005# (C) Copyright 2005
6# Sandburst Corporation
7# Travis B. Sawyer
8#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02009# SPDX-License-Identifier: GPL-2.0+
Stefan Roese5ff4c3f2005-08-15 12:31:23 +020010#
11
12include $(TOPDIR)/config.mk
Marian Balakowiczd62379d2006-09-01 19:49:50 +020013ifneq ($(OBJTREE),$(SRCTREE))
14$(shell mkdir -p $(obj)../common)
15endif
Stefan Roese5ff4c3f2005-08-15 12:31:23 +020016
17# TBS: add for debugging purposes
18BUILDUSER := $(shell whoami)
19FORCEBUILD := $(shell rm -f $(LIB) $(BOARD).o)
20
21CFLAGS += -DBUILDUSER='"$(BUILDUSER)"'
22# TBS: end debugging
23
24
Sebastien Carliera8d426f2010-11-05 15:48:07 +010025LIB = $(obj)lib$(BOARD).o
Stefan Roese5ff4c3f2005-08-15 12:31:23 +020026
Dirk Eibach42b204f2013-04-25 02:40:01 +000027COBJS = $(BOARD).o ../common/flash.o ../common/sb_common.o
Stefan Roese5ff4c3f2005-08-15 12:31:23 +020028
29SOBJS = init.o
30
Marian Balakowiczd62379d2006-09-01 19:49:50 +020031SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
32OBJS := $(addprefix $(obj),$(COBJS))
33SOBJS := $(addprefix $(obj),$(SOBJS))
Stefan Roese5ff4c3f2005-08-15 12:31:23 +020034
35$(LIB): $(OBJS) $(SOBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010036 $(call cmd_link_o_target, $(OBJS))
Stefan Roese5ff4c3f2005-08-15 12:31:23 +020037
Stefan Roese5ff4c3f2005-08-15 12:31:23 +020038#########################################################################
39
Marian Balakowiczd62379d2006-09-01 19:49:50 +020040# defines $(obj).depend target
41include $(SRCTREE)/rules.mk
Stefan Roese5ff4c3f2005-08-15 12:31:23 +020042
Marian Balakowiczd62379d2006-09-01 19:49:50 +020043sinclude $(obj).depend
Stefan Roese5ff4c3f2005-08-15 12:31:23 +020044
45#########################################################################