[Crosstoolchain-logs] [device-tree-compiler] 09/357: Add automatic dependency generation.
Hector Oron
zumbi at moszumanska.debian.org
Thu Dec 8 17:05:42 UTC 2016
This is an automated email from the git hooks/post-receive script.
zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.
commit 1cb934b3aa3eff2ee5a04808af52ed7933cf31bb
Author: David Gibson <dgibson at sneetch.(none)>
Date: Mon Jul 11 16:29:25 2005 +1000
Add automatic dependency generation.
---
Makefile | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/Makefile b/Makefile
index 8cd8a12..7ff5251 100644
--- a/Makefile
+++ b/Makefile
@@ -6,13 +6,13 @@ BISON = bison
OBJS = dtc.o livetree.o flattree.o data.o treesource.o fstree.o \
dtc-parser.tab.o lex.yy.o
-all: $(TARGETS)
+DEPFILES = $(OBJS:.o=.d)
+
+all: $(DEPFILES) $(TARGETS)
dtc: $(OBJS)
$(LINK.c) -o $@ $^
-$(OBJS): dtc.h
-
dtc-parser.tab.c dtc-parser.tab.h dtc-parser.output: dtc-parser.y
$(BISON) -d -v $<
@@ -21,8 +21,6 @@ lex.yy.c: dtc-lexer.l
lex.yy.o: lex.yy.c dtc-parser.tab.h
-livetree.o: flat_dt.h
-
check: all
cd tests && $(MAKE) check
@@ -30,5 +28,10 @@ clean:
rm -f *~ *.o a.out core $(TARGETS)
rm -f *.tab.[ch] lex.yy.c
rm -f *.i *.output vgcore.*
+ rm -f *.d
cd tests && $(MAKE) clean
+%.d: %.c
+ $(CC) -MM -MG -MT "$*.o $@" $< > $@
+
+-include $(DEPFILES)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git
More information about the Crosstoolchain-logs
mailing list