Create Makefile.utils and move ftdump into it

We want to avoid a separate Makefile include for each utility, so this sets
up a general one for utilities.

Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Simon Glass <sjg@chromium.org>
main
Simon Glass 2011-09-21 13:32:44 -07:00 committed by Jon Loeliger
parent a4ea2fa951
commit 9ebd9b4a56
3 changed files with 11 additions and 14 deletions

View File

@ -105,7 +105,7 @@ endef

include Makefile.convert-dtsv0
include Makefile.dtc
include Makefile.ftdump
include Makefile.utils

BIN += convert-dtsv0
BIN += dtc

View File

@ -1,13 +0,0 @@
#
# This is not a complete Makefile of itself.
# Instead, it is designed to be easily embeddable
# into other systems of Makefiles.
#

FTDUMP_SRCS = \
ftdump.c \
util.c

FTDUMP_GEN_SRCS =

FTDUMP_OBJS = $(FTDUMP_SRCS:%.c=%.o) $(FTDUMP_GEN_SRCS:%.c=%.o)

10
Makefile.utils Normal file
View File

@ -0,0 +1,10 @@
#
# This is not a complete Makefile of itself. Instead, it is designed to
# be easily embeddable into other systems of Makefiles.
#

FTDUMP_SRCS = \
ftdump.c \
util.c

FTDUMP_OBJS = $(FTDUMP_SRCS:%.c=%.o)