diff options
author | Peter Tyser | 2009-03-13 18:54:46 -0500 |
---|---|---|
committer | Wolfgang Denk | 2009-04-04 01:14:25 +0200 |
commit | eed073315b6447eceadf7468a4c2b757442c7c6f (patch) | |
tree | e2375840f5f6b8f3b0f4c94fd4876bb93f752363 /tools | |
parent | c0170175393b94560fa7a5da6dd31377df5f4a72 (diff) |
tools/Makefile: Dynamically generate libfdt object dependencies
Add the libfdt files to the SRCS variable so that they have their
dependencies automatically generated
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/Makefile | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tools/Makefile b/tools/Makefile index ef51abcc265..b1680adc0c9 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -22,7 +22,6 @@ # TOOLSUBDIRS = -LIBFDT_DIR = $(SRCTREE)/libfdt/ # # Mac OS X / Darwin's C preprocessor is Apple specific. It @@ -128,6 +127,7 @@ endif # now $(obj) is defined SRCS := $(addprefix $(obj),$(OBJ_LINKS-y:.o=.c)) $(OBJ_FILES-y:.o=.c) +SRCS += $(addprefix $(SRCTREE)/libfdt/,$(LIBFDT_OBJ_FILES-y:.o=.c)) BINS := $(addprefix $(obj),$(BIN_FILES-y)) LIBFDT_OBJS := $(addprefix $(obj),$(LIBFDT_OBJ_FILES-y)) @@ -224,20 +224,19 @@ $(obj)inca-swap-bytes.o: $(src)inca-swap-bytes.c $(obj)mpc86x_clk.o: $(src)mpc86x_clk.c $(CC) -g $(CFLAGS) -c -o $@ $< -$(obj)fdt.o: $(LIBFDT_DIR)fdt.c $(SRCTREE)/libfdt/libfdt_internal.h +$(obj)fdt.o: $(CC) -g $(FIT_CFLAGS) -c -o $@ $< -$(obj)fdt_ro.o: $(LIBFDT_DIR)fdt_ro.c $(SRCTREE)/libfdt/libfdt_internal.h +$(obj)fdt_ro.o: $(CC) -g $(FIT_CFLAGS) -c -o $@ $< -$(obj)fdt_rw.o: $(LIBFDT_DIR)fdt_rw.c $(SRCTREE)/libfdt/libfdt_internal.h +$(obj)fdt_rw.o: $(CC) -g $(FIT_CFLAGS) -c -o $@ $< -$(obj)fdt_strerror.o: $(LIBFDT_DIR)fdt_strerror.c \ - $(SRCTREE)/libfdt/libfdt_internal.h +$(obj)fdt_strerror.o: $(CC) -g $(FIT_CFLAGS) -c -o $@ $< -$(obj)fdt_wip.o: $(LIBFDT_DIR)fdt_wip.c $(SRCTREE)/libfdt/libfdt_internal.h +$(obj)fdt_wip.o: $(CC) -g $(FIT_CFLAGS) -c -o $@ $< subdirs: |