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