xref: /openbmc/u-boot/lib/libfdt/Makefile (revision 3765b3e7)
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
8include $(TOPDIR)/config.mk
9
10LIB	= $(obj)libfdt.o
11
12SOBJS	=
13
14COBJS-libfdt += fdt.o fdt_ro.o fdt_rw.o fdt_strerror.o fdt_sw.o fdt_wip.o fdt_empty_tree.o
15
16COBJS-$(CONFIG_OF_LIBFDT) += $(COBJS-libfdt)
17COBJS-$(CONFIG_FIT) += $(COBJS-libfdt)
18
19
20COBJS	:= $(sort $(COBJS-y))
21SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
22OBJS	:= $(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
30include $(SRCTREE)/rules.mk
31
32sinclude $(obj).depend
33
34#########################################################################
35