summaryrefslogtreecommitdiff
path: root/source4/build/smb_build/makefile.pm
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-03-24 14:47:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:59:09 -0500
commit0587194725d21ac7858f7cd4b56efdc10f2ebb16 (patch)
treef24378dd73e778ff2581b14841a1f9b0685194cc /source4/build/smb_build/makefile.pm
parent76ab42061529f026f3cade4ab2b2779dd676a61a (diff)
downloadsamba-0587194725d21ac7858f7cd4b56efdc10f2ebb16.tar.gz
samba-0587194725d21ac7858f7cd4b56efdc10f2ebb16.tar.bz2
samba-0587194725d21ac7858f7cd4b56efdc10f2ebb16.zip
r14693: Automatically update dependencies during compilation
(This used to be commit cea38a2960f9da11bc96f5b05fd5b44b39509cf8)
Diffstat (limited to 'source4/build/smb_build/makefile.pm')
-rw-r--r--source4/build/smb_build/makefile.pm10
1 files changed, 6 insertions, 4 deletions
diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm
index 36a3834e40..972153662d 100644
--- a/source4/build/smb_build/makefile.pm
+++ b/source4/build/smb_build/makefile.pm
@@ -41,15 +41,17 @@ sub new($$$)
$self->output("################################################\n");
$self->output("\n");
- if (!$self->{automatic_deps}) {
- $self->output("ALL_PREDEP = proto\n");
- }
-
$self->output("default: all\n\n");
$self->_prepare_path_vars();
$self->_prepare_compiler_linker();
+ if (!$self->{automatic_deps}) {
+ $self->output("ALL_PREDEP = proto\n");
+ } else {
+ $self->output("CFLAGS += -MD\n");
+ }
+
return $self;
}