1# SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) 2# Makefile.libfdt 3# 4# This is not a complete Makefile of itself. Instead, it is designed to 5# be easily embeddable into other systems of Makefiles. 6# 7 8LIBFDT_so = libfdt.$(SHAREDLIB_EXT) 9LIBFDT_soname = libfdt.$(SHAREDLIB_EXT).1 10LIBFDT_INCLUDES = fdt.h libfdt.h libfdt_env.h 11LIBFDT_VERSION = version.lds 12LIBFDT_SRCS = fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c fdt_empty_tree.c \ 13 fdt_addresses.c fdt_overlay.c fdt_check.c 14LIBFDT_OBJS = $(LIBFDT_SRCS:%.c=%.o) 15LIBFDT_LIB = libfdt.$(SHAREDLIB_EXT).$(DTC_VERSION) 16 17libfdt_clean: 18 @$(VECHO) CLEAN "(libfdt)" 19 rm -f $(STD_CLEANFILES:%=$(LIBFDT_dir)/%) 20 rm -f $(LIBFDT_dir)/$(LIBFDT_so) 21 rm -f $(LIBFDT_dir)/$(LIBFDT_soname) 22 rm -f $(LIBFDT_dir)/$(LIBFDT_LIB) 23