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