]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/blackfin/lib/Makefile
Add GPL-2.0+ SPDX-License-Identifier to source files
[karo-tx-uboot.git] / arch / blackfin / lib / Makefile
1 #
2 # U-boot Makefile
3 #
4 # Copyright (c) 2005-2008 Analog Devices Inc.
5 #
6 # (C) Copyright 2000-2006
7 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
8 #
9 # SPDX-License-Identifier:      GPL-2.0+
10 #
11
12 include $(TOPDIR)/config.mk
13
14 CFLAGS += -DBFIN_BOARD_NAME='"$(BOARD)"'
15
16 LIB     = $(obj)lib$(ARCH).o
17
18 SOBJS-y += ins.o
19 SOBJS-y += memcmp.o
20 SOBJS-y += memcpy.o
21 SOBJS-y += memmove.o
22 SOBJS-y += memset.o
23 SOBJS-y += outs.o
24 SOBJS-$(CONFIG_CMD_KGDB) += __kgdb.o
25
26 COBJS-y += board.o
27 COBJS-y += boot.o
28 COBJS-y += cache.o
29 COBJS-y += clocks.o
30 COBJS-$(CONFIG_CMD_CACHE_DUMP) += cmd_cache_dump.o
31 COBJS-$(CONFIG_CMD_KGDB) += kgdb.o
32 COBJS-y += muldi3.o
33 COBJS-$(CONFIG_HAS_POST) += post.o
34 COBJS-y += string.o
35
36 SRCS    := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
37 OBJS    := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
38
39 $(LIB): $(obj).depend $(OBJS)
40         $(call cmd_link_o_target, $(OBJS))
41
42 #########################################################################
43
44 # defines $(obj).depend target
45 include $(SRCTREE)/rules.mk
46
47 sinclude $(obj).depend
48
49 #########################################################################