r13924: Split more prototypes out of include/proto.h + initial work on header
[bbaumbach/samba-autobuild/.git] / source / build / smb_build / makefile.pm
index b7c3a273832cb240234d95b0fdb40c4e18353257..0638c0ac30b6481109508355d2b4bdfe17ce413a 100644 (file)
@@ -239,6 +239,18 @@ sub _prepare_list($$$)
        $self->output("$ctx->{TYPE}\_$ctx->{NAME}_$var =$tmplist\n");
 }
 
+sub DependencyInfo($$)
+{
+       my ($self,$ctx) = @_;
+
+       $self->output("bin/deps/$ctx->{TYPE}_$ctx->{NAME}: \$($ctx->{TYPE}_$ctx->{NAME}_OBJ_LIST:.o=.c)");
+       $self->output("\n");
+       $self->output("\t\@echo \"Generating dependency info for $ctx->{NAME}\"\n");
+       $self->output("\t\@./script/cdeps.pl \$^ > \$@\n");
+       $self->output("\n");
+       $self->output("-include bin/deps/$ctx->{TYPE}_$ctx->{NAME}\n\n");
+}
+
 sub SharedLibrary($$)
 {
        my ($self,$ctx) = @_;