]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/sandburst/karef/Makefile
Merge branch 'master' of git://git.denx.de/u-boot-mips
[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/sb_common.o
28
29 SOBJS   = init.o
30
31 SRCS    := $(SOBJS:.o=.S) $(COBJS:.o=.c)
32 OBJS    := $(addprefix $(obj),$(COBJS))
33 SOBJS   := $(addprefix $(obj),$(SOBJS))
34
35 $(LIB): $(OBJS) $(SOBJS)
36         $(call cmd_link_o_target, $(OBJS))
37
38 #########################################################################
39
40 # defines $(obj).depend target
41 include $(SRCTREE)/rules.mk
42
43 sinclude $(obj).depend
44
45 #########################################################################