From 4ac2be99588b48b0652a524bf12fb1aa9c3f5fbb Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 7 Mar 2006 11:07:23 +0000 Subject: r13924: Split more prototypes out of include/proto.h + initial work on header file dependencies (This used to be commit 122835876748a3eaf5e8d31ad1abddab9acb8781) --- source4/build/smb_build/TODO | 4 ++++ source4/build/smb_build/main.pl | 1 + source4/build/smb_build/makefile.pm | 12 ++++++++++++ 3 files changed, 17 insertions(+) (limited to 'source4/build/smb_build') diff --git a/source4/build/smb_build/TODO b/source4/build/smb_build/TODO index 05893b62de..6b5ebbb8ba 100644 --- a/source4/build/smb_build/TODO +++ b/source4/build/smb_build/TODO @@ -1,3 +1,7 @@ +- for each subsystem: + - include line in Makefile + - rule in Makefile + - - sonames - get rid of include/structs.h - add register function to smbtorture diff --git a/source4/build/smb_build/main.pl b/source4/build/smb_build/main.pl index 83befe7c67..bf11e8c896 100644 --- a/source4/build/smb_build/main.pl +++ b/source4/build/smb_build/main.pl @@ -77,6 +77,7 @@ foreach my $key (values %$OUTPUT) { $mkenv->Header($key) if defined($key->{PUBLIC_HEADERS}); $mkenv->ProtoHeader($key) if defined($key->{PRIVATE_PROTO_HEADER}); +# $mkenv->DependencyInfo($key) if $config::config{developer} eq "yes"; } $mkenv->write("Makefile"); diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm index b7c3a27383..0638c0ac30 100644 --- a/source4/build/smb_build/makefile.pm +++ b/source4/build/smb_build/makefile.pm @@ -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) = @_; -- cgit