]> git.karo-electronics.de Git - karo-tx-uboot.git/blob - lib/libfdt/Makefile
Add GPL-2.0+ SPDX-License-Identifier to source files
[karo-tx-uboot.git] / lib / libfdt / Makefile
1 #
2 # (C) Copyright 2000-2007
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 #
5 # SPDX-License-Identifier:      GPL-2.0+
6 #
7
8 include $(TOPDIR)/config.mk
9
10 LIB     = $(obj)libfdt.o
11
12 SOBJS   =
13
14 COBJS-libfdt += fdt.o fdt_ro.o fdt_rw.o fdt_strerror.o fdt_sw.o fdt_wip.o fdt_empty_tree.o
15
16 COBJS-$(CONFIG_OF_LIBFDT) += $(COBJS-libfdt)
17 COBJS-$(CONFIG_FIT) += $(COBJS-libfdt)
18
19
20 COBJS   := $(sort $(COBJS-y))
21 SRCS    := $(SOBJS:.o=.S) $(COBJS:.o=.c)
22 OBJS    := $(addprefix $(obj),$(SOBJS) $(COBJS))
23
24 $(LIB): $(obj).depend $(OBJS)
25         $(call cmd_link_o_target, $(OBJS))
26
27 #########################################################################
28
29 # defines $(obj).depend target
30 include $(SRCTREE)/rules.mk
31
32 sinclude $(obj).depend
33
34 #########################################################################