summaryrefslogtreecommitdiff
path: root/source4/build/smb_build
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/smb_build')
-rw-r--r--source4/build/smb_build/main.pm5
-rw-r--r--source4/build/smb_build/makefile.pm8
2 files changed, 8 insertions, 5 deletions
diff --git a/source4/build/smb_build/main.pm b/source4/build/smb_build/main.pm
index eb48ae0461..6e027af45a 100644
--- a/source4/build/smb_build/main.pm
+++ b/source4/build/smb_build/main.pm
@@ -16,9 +16,10 @@ use strict;
my $config_list = "config.list";
-sub smb_build_main($)
+sub smb_build_main($$)
{
my $INPUT = shift;
+ my $settings = shift;
my @mkfiles = split('\n', `grep -v ^# $config_list`);
@@ -32,7 +33,7 @@ sub smb_build_main($)
my $OUTPUT = output::create_output($DEPEND);
- makefile::create_makefile_in($OUTPUT, "Makefile.in");
+ makefile::create_makefile_in($OUTPUT, $settings, "Makefile.in");
smb_build_h::create_smb_build_h($OUTPUT, "include/smb_build.h");
diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm
index aba23be2eb..ddbfb7889e 100644
--- a/source4/build/smb_build/makefile.pm
+++ b/source4/build/smb_build/makefile.pm
@@ -737,9 +737,10 @@ sub _prepare_rule_lists($)
# $OUTPUT - the global OUTPUT context
#
# $output - the resulting output buffer
-sub _prepare_makefile_in($)
+sub _prepare_makefile_in($$)
{
my $CTX = shift;
+ my $settings = shift;
my $output;
$output = "########################################\n";
@@ -791,13 +792,14 @@ sub _prepare_makefile_in($)
# $OUTPUT - the global OUTPUT context
#
# $output - the resulting output buffer
-sub create_makefile_in($$)
+sub create_makefile_in($$$)
{
my $CTX = shift;
+ my $settings = shift;
my $file = shift;
open(MAKEFILE_IN,">$file") || die ("Can't open $file\n");
- print MAKEFILE_IN _prepare_makefile_in($CTX);
+ print MAKEFILE_IN _prepare_makefile_in($CTX, $settings);
close(MAKEFILE_IN);
print "config.smb_build.pl: creating $file\n";