Simon Glass | f0921f5 | 2019-10-27 09:47:42 -0600 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) |
Tom Rini | c0e032e | 2017-09-23 12:52:44 -0400 | [diff] [blame] | 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 | LIBFDT_soname = libfdt.$(SHAREDLIB_EXT).1 |
| 8 | LIBFDT_INCLUDES = fdt.h libfdt.h libfdt_env.h |
| 9 | LIBFDT_VERSION = version.lds |
| 10 | LIBFDT_SRCS = fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c fdt_empty_tree.c \ |
| 11 | fdt_addresses.c fdt_overlay.c |
| 12 | LIBFDT_OBJS = $(LIBFDT_SRCS:%.c=%.o) |
Simon Glass | f0921f5 | 2019-10-27 09:47:42 -0600 | [diff] [blame] | 13 | LIBFDT_LIB = libfdt-$(DTC_VERSION).$(SHAREDLIB_EXT) |
| 14 | |
| 15 | libfdt_clean: |
| 16 | @$(VECHO) CLEAN "(libfdt)" |
| 17 | rm -f $(STD_CLEANFILES:%=$(LIBFDT_dir)/%) |
| 18 | rm -f $(LIBFDT_dir)/$(LIBFDT_soname) |