mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
This patch makes a number of Makefile cleanups and improvements: - We use more generic rules to invoke flex and bison, which is useful for some of the other changes. - We use the name dtc-lexer.lex.c for the flex output, instead of the default lex.yy.c. That means less potential for confusion if dtc is embedded into other projects (e.g. the kernel). - We separate out a Makefile.dtc designed for embedding into other projects, analagous to Makefile.libfdt. - Makefile.libfdt is cleaned up to be more useful based on some actual trial runs of embedding libfdt in the kernel bootwrapper. - Versioning related rules and variables are collected into one place in the Makefile. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
14 lines
436 B
Text
14 lines
436 B
Text
# Makefile.libfdt
|
|
#
|
|
# This is not a complete Makefile of itself. Instead, it is designed to
|
|
# be easily embeddable into other systems of Makefiles.
|
|
#
|
|
LIBFDT_SRCS = fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c
|
|
LIBFDT_INCLUDES = fdt.h libfdt.h
|
|
LIBFDT_EXTRA = libfdt_internal.h
|
|
LIBFDT_LIB = libfdt/libfdt.a
|
|
|
|
LIBFDT_OBJS = $(LIBFDT_SRCS:%.c=%.o)
|
|
|
|
$(LIBFDT_objdir)/$(LIBFDT_LIB): $(addprefix $(LIBFDT_objdir)/,$(LIBFDT_OBJS))
|
|
|