3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
6 # Travis B. Sawyer, Sandburst Corporation, tsawyer@sandburst.com
8 # SPDX-License-Identifier: GPL-2.0+
11 include $(TOPDIR)/config.mk
12 ifneq ($(OBJTREE),$(SRCTREE))
13 $(shell mkdir -p $(obj)../common)
16 # TBS: add for debugging purposes
17 BUILDUSER := $(shell whoami)
18 FORCEBUILD := $(shell rm -f $(LIB) $(BOARD).o)
20 CFLAGS += -DBUILDUSER='"$(BUILDUSER)"'
24 LIB = $(obj)lib$(BOARD).o
26 COBJS = $(BOARD).o ../common/flash.o ../common/sb_common.o
29 SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
30 OBJS := $(addprefix $(obj),$(COBJS))
31 SOBJS := $(addprefix $(obj),$(SOBJS))
33 $(LIB): $(OBJS) $(SOBJS)
34 $(call cmd_link_o_target, $(OBJS))
36 #########################################################################
38 # defines $(obj).depend target
39 include $(SRCTREE)/rules.mk
41 sinclude $(obj).depend
43 #########################################################################