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