aboutsummaryrefslogtreecommitdiff
path: root/libfdt/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'libfdt/Makefile.inc')
-rw-r--r--libfdt/Makefile.inc18
1 files changed, 18 insertions, 0 deletions
diff --git a/libfdt/Makefile.inc b/libfdt/Makefile.inc
new file mode 100644
index 0000000..e477d7c
--- /dev/null
+++ b/libfdt/Makefile.inc
@@ -0,0 +1,18 @@
+# Makefile.libfdt
+#
+# This is not a complete Makefile of itself. Instead, it is designed to
+# be easily embeddable into other systems of Makefiles.
+#
+
+LIBFDT_INCLUDES = fdt.h libfdt.h
+LIBFDT_SRCS = fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c
+LIBFDT_OBJS = $(LIBFDT_SRCS:%.c=%.o)
+
+# That warning can't really be fixed so compile the file without it
+CFLAGS_SKIP_libfdt/fdt_sw.o = -Wstack-usage=4096
+
+SUBDIRS += libfdt
+LIBFDT = libfdt/built-in.o
+
+$(LIBFDT): $(LIBFDT_OBJS:%=libfdt/%)
+