summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-07-28 19:40:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:30:10 -0500
commit294d2f4f7845cb5a111a3da6f1008ad678dc963d (patch)
tree83aed009f0b610cb4f426e0b9fb35d0a58148d8f /source4
parent726681d158704f941b71fe4787ac9f1a610328c5 (diff)
downloadsamba-294d2f4f7845cb5a111a3da6f1008ad678dc963d.tar.gz
samba-294d2f4f7845cb5a111a3da6f1008ad678dc963d.tar.bz2
samba-294d2f4f7845cb5a111a3da6f1008ad678dc963d.zip
r8838: Add ugly hack to prevent make from barfing out because it doesn't know
how to create heimdal C files. (This used to be commit 403ed4abf5d9061c1d8e66e94766ae1ccefb585d)
Diffstat (limited to 'source4')
-rw-r--r--source4/build/smb_build/makefile.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm
index 01d2de770a..197f506e2a 100644
--- a/source4/build/smb_build/makefile.pm
+++ b/source4/build/smb_build/makefile.pm
@@ -216,10 +216,16 @@ __EOD__
sub _prepare_depend_CC_rule()
{
return << '__EOD__';
-.c.d:
+
+%.d: %.c
@echo "Generating dependencies for $<"
@$(CC) -MM -MG -MT $(<:.c=.o) -MF $@ $(CFLAGS) $<
+# Ugly fallback used for generating a dependency file when
+# make doesn't know how to build the related C file
+%.d:
+ @touch $@
+
__EOD__
}