summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-05 14:31:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:17:15 -0500
commitf9a175ae24f301597b489e02191a4b740cee1f4b (patch)
treed7ee8e8f82d4aa6fb539ea6eb95e104bbcd22f81
parentc91a27fd80a0c282b0668cb3a7a297173476b2cb (diff)
downloadsamba-f9a175ae24f301597b489e02191a4b740cee1f4b.tar.gz
samba-f9a175ae24f301597b489e02191a4b740cee1f4b.tar.bz2
samba-f9a175ae24f301597b489e02191a4b740cee1f4b.zip
r18095: correctly rebuild the dependencies not only the object file
metze (This used to be commit 8e0497c5d217470bef5bd537c5d2b7be9ae89602)
-rw-r--r--source4/main.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/main.mk b/source4/main.mk
index 6be785e0ce..79876854f1 100644
--- a/source4/main.mk
+++ b/source4/main.mk
@@ -317,15 +317,15 @@ unused_macros:
.c.d:
@echo "Generating dependencies for $<"
- @$(CC) -M -MG -MP -MT $(<:.c=.o) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $< -o $@
+ @$(CC) -M -MG -MP -MT $(<:.c=.o) -MT $@ `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $< -o $@
.c.hd:
@echo "Generating host-compiler dependencies for $<"
- @$(CC) -M -MG -MP -MT $(<:.c=.ho) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $< -o $@
+ @$(CC) -M -MG -MP -MT $(<:.c=.ho) -MT $@ `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $< -o $@
include/includes.d: include/includes.h
@echo "Generating dependencies for $<"
- @$(CC) -M -MG -MT include/includes.h.gch $(CFLAGS) $< -o $@
+ @$(CC) -M -MG -MT include/includes.h.gch -MT $@ $(CFLAGS) $< -o $@
.c.o:
@if test -n "$(CC_CHECKER)"; then \